Skip to content

Commit

Permalink
Added condition to return value if there are no default colors.
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzadbinshahjahan committed Feb 2, 2024
1 parent 8db453c commit 3cf59c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Controls/Color.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export default {
return this.df.options;
},
selectedColorLabel() {
if(!this.colors) return this.value;
const color = this.colors.find((c) => this.value === c.value);
return color ? color.label : this.value;
},
Expand Down

0 comments on commit 3cf59c2

Please sign in to comment.