Skip to content
Snippets Groups Projects
Commit e92284be authored by TheLD's avatar TheLD
Browse files

fix: correctly handle null/undefined values in entitypicker._entity subscription

parent 7653ac0a
1 merge request!745fix: correctly handle null/undefined values in entitypicker._entity subscription
Pipeline #30237 passed with stage
in 1 minute and 26 seconds
......@@ -41,7 +41,9 @@ export const subscibeEntityByEntityPickerValue: <
const [prevOptions, prevValue] = prev;
const [currOptions, currValue] = curr;
return (
(prevValue === currValue || !prevValue === !currValue) &&
(prevValue === currValue ||
(prevValue === null && currValue === undefined) ||
(prevValue === undefined && currValue === null)) &&
prevOptions?.class === currOptions?.class &&
JSON.stringify(prevOptions?.selectionSet) === JSON.stringify(currOptions?.selectionSet)
);
......
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