Commit 5844f1b7 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'ntepluhina-fix-pushing-null-label' into 'master'

Prevent pushing null when creating a new label

See merge request gitlab-org/gitlab!79121
parents dc500b98 c168acea
...@@ -117,7 +117,11 @@ export default { ...@@ -117,7 +117,11 @@ export default {
labelCreate: { label }, labelCreate: { label },
}, },
}, },
) => this.updateLabelsInCache(store, label), ) => {
if (label) {
this.updateLabelsInCache(store, label);
}
},
}); });
if (labelCreate.errors.length) { if (labelCreate.errors.length) {
[this.error] = labelCreate.errors; [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