mirror of
https://github.com/frappe/books.git
synced 2024-11-09 23:30:56 +00:00
Added condition to return value if there are no default colors.
This commit is contained in:
parent
8db453c2f0
commit
3cf59c259e
@ -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;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user