mirror of
https://github.com/frappe/books.git
synced 2025-03-14 23:22:22 +00:00
Merge pull request #837 from shahzadbinshahjahan/master
[Bug] - Fix Type error in Colors.vue without default colors
This commit is contained in:
commit
71c4e8a411
@ -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…
x
Reference in New Issue
Block a user