Closed shahzadbinshahjahan closed 4 months ago
Hi @shahzadbinshahjahan Can you fix the linting issue?
Should just be able to run yarn prettier --write src/components/Controls/Color.vue
and be good
Hi @Isaac-GC, I have fixed the linting issue. Thank you for your help.
Issue
When adding a color field by customizing the form without specifying default values,
Color.vue
throws a Type error because it tries to find the color from an undefined colors arrayChanges Made
Added a condition before the
![Screenshot from 2024-02-02 18 21 44](https://github.com/frappe/books/assets/26800640/2500e586-756c-4cef-bd41-a54317233607)
find
call to return the value if there are no items in the colors array.