2
0
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:
Shahzad Bin Shahjahan 2024-02-08 12:50:23 +05:30
parent 3cf59c259e
commit 36d4890210

View File

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