Skip to content

Commit 7d5d35d

Browse files
khangonnnhathung
andauthored
feature-8984: Backgroud images disappeared when select color and cancel (#8995)
Co-authored-by: nnhathung <[email protected]>
1 parent cafebc1 commit 7d5d35d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

app/components/forms/wizard/badge-forms/badge-setting.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ export default Component.extend(FormMixin, EventWizardMixin, {
2424
}),
2525
actions: {
2626
onChangeBadgeColor() {
27-
this.set('data.badgeImageURL', null);
28-
this.set('data.selectedImage', null);
29-
this.set('data.imageUrl', null);
27+
if (this.data.badgeColor != null)
28+
{
29+
this.set('data.badgeImageURL', null);
30+
this.set('data.selectedImage', null);
31+
this.set('data.imageUrl', null);
32+
}
3033
}
3134
}
3235
});

0 commit comments

Comments
 (0)