mirror of
https://github.com/frappe/books.git
synced 2024-11-08 14:50:56 +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;
|
||||
},
|
||||
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;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user