remove reference to desription in create-edit-view

This commit is contained in:
Nancy Butler 2020-04-22 17:25:24 -07:00
parent b8a996c43f
commit 656d13af1b
1 changed files with 0 additions and 5 deletions

View File

@ -170,11 +170,6 @@ export default {
this.errors = null;
try {
await this.applyHooks(BEFORE_SAVE_HOOKS);
// add description to annotations
if (!this.value.metadata.annotations) {
this.$set(this.value.metadata, 'annotations', {});
}
this.$set(this.value.metadata.annotations, DESCRIPTION, this.description);
// Remove the labels map if it's empty
if ( this.value?.metadata?.labels && Object.keys(this.value.metadata.labels || {}).length === 0 ) {