Skip to content
Snippets Groups Projects
Commit 385e0424 authored by François Grand's avatar François Grand Committed by AUBRY JEAN-PASCAL
Browse files

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

refs #609
parent c9eb6bce
No related branches found
No related tags found
2 merge requests!252release: version 4.18.0,!213Resolve "Ajout du module courbe de remous d'une passe à macro-rugosité"
......@@ -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