Skip to content

Commit

Permalink
fix annotation changes not being reactive (rancher#12454)
Browse files Browse the repository at this point in the history
Co-authored-by: Mo Mesgin <[email protected]>
  • Loading branch information
momesgin and Mo Mesgin authored Nov 1, 2024
1 parent 0e6b291 commit c321e42
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default {
if (isEmpty(this.value?.annotations)) {
this.value['annotations'] = { summary: '' };
} else {
this.value.annotations['summary'] = '';
this.value.annotations = { ...this.value.annotations, summary: '' };
}
} else {
this.value.annotations['summary'] = '';
Expand All @@ -124,7 +124,7 @@ export default {
if (isEmpty(this.value?.annotations)) {
this.value['annotations'] = { message: '' };
} else {
this.value.annotations['message'] = '';
this.value.annotations = { ...this.value.annotations, message: '' };
}
} else {
this.value.annotations['message'] = '';
Expand All @@ -146,7 +146,7 @@ export default {
if (isEmpty(this.value?.annotations)) {
this.value['annotations'] = { description: '' };
} else {
this.value.annotations['description'] = '';
this.value.annotations = { ...this.value.annotations, description: '' };
}
} else {
this.value.annotations['description'] = '';
Expand All @@ -168,7 +168,7 @@ export default {
if (isEmpty(this.value?.annotations)) {
this.value['annotations'] = { runbook_url: '' };
} else {
this.value.annotations['runbook_url'] = '';
this.value.annotations = { ...this.value.annotations, runbook_url: '' };
}
} else {
this.value.annotations['runbook_url'] = '';
Expand Down

0 comments on commit c321e42

Please sign in to comment.