mirror of
https://github.com/frappe/books.git
synced 2025-01-07 17:14:18 +00:00
Fixed linting after adding condition to return value if there are no default colors
This commit is contained in:
parent
3cf59c259e
commit
36d4890210
@ -71,7 +71,7 @@ export default {
|
|||||||
return this.df.options;
|
return this.df.options;
|
||||||
},
|
},
|
||||||
selectedColorLabel() {
|
selectedColorLabel() {
|
||||||
if(!this.colors) return this.value;
|
if (!this.colors) return this.value;
|
||||||
const color = this.colors.find((c) => this.value === c.value);
|
const color = this.colors.find((c) => this.value === c.value);
|
||||||
return color ? color.label : this.value;
|
return color ? color.label : this.value;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user