Commit 4c40edc3 authored by Nicolas Wavrant's avatar Nicolas Wavrant Committed by Eteri

erp5_web_renderjs_ui: fix variable name

state_dict.items doesn't exist and trying to access it raises an error
parent 50f1db5b
......@@ -60,7 +60,7 @@
//the first item will always be selected if no initial default value is supplied.
if (state_dict.value === "" && state_dict.select_first_item) {
state_dict.value = state_dict.items[0][1];
state_dict.value = state_dict.item_list[0][1];
}
return this.changeState(state_dict);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment