Skip to content

Commit

Permalink
Fixed linting after adding condition to return value if there are no …
Browse files Browse the repository at this point in the history
…default colors
  • Loading branch information
shahzadbinshahjahan committed Feb 8, 2024
1 parent 3cf59c2 commit 36d4890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Controls/Color.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default {
return this.df.options;
},
selectedColorLabel() {
if(!this.colors) return this.value;
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 36d4890

Please sign in to comment.