Commit c168acea authored by Natalia Tepluhina's avatar Natalia Tepluhina Committed by Kushal Pandya

Prevent pushing null when creating a new label

parent c87a7436
......@@ -117,7 +117,11 @@ export default {
labelCreate: { label },
},
},
) => this.updateLabelsInCache(store, label),
) => {
if (label) {
this.updateLabelsInCache(store, label);
}
},
});
if (labelCreate.errors.length) {
[this.error] = labelCreate.errors;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment