Skip to content

Commit

Permalink
fix: Cannot read properties of undefined (reading 'map') (#110)
Browse files Browse the repository at this point in the history
(cherry picked from commit e30fb21)
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed Apr 9, 2024
1 parent 8245fb6 commit a3ed3dd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions webshop/templates/generators/item/item_configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,12 @@ class ItemConfigure {

btn_clear_values() {
this.dialog.fields_list.forEach(f => {
f.df.options = f.df.options.map(option => {
option.disabled = false;
return option;
});
if (f.df?.options) {
f.df.options = f.df.options.map(option => {
option.disabled = false;
return option;
});
}
});
this.dialog.clear();
this.on_attribute_selection();
Expand Down

0 comments on commit a3ed3dd

Please sign in to comment.