Skip to content
Snippets Groups Projects
Commit 877305bf authored by François Grand's avatar François Grand
Browse files

fix: crash in SelectField.setValue() with an undefined value

refs #609
parent 0d15abc8
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,7 @@ export abstract class SelectField extends Field {
const valueChanged = (
(previousSelectedEntry === undefined && v !== undefined)
|| (
previousSelectedEntry !== undefined && v !== undefined &&
!Array.isArray(previousSelectedEntry)
&& !Array.isArray(v)
&& previousSelectedEntry.id !== v.id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment