2
0
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:
Isaac-GC 2024-02-12 14:25:13 -08:00 committed by GitHub
commit 71c4e8a411
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
},