Skip to content

Commit

Permalink
fix: undefined array
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Dec 27, 2024
1 parent 56f3bf4 commit ddc0c1e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
const default_value = nullable ? null : selectedValues[0];
function arraysEqual(arr1: (string | undefined)[], arr2: (string | undefined)[]) {
if (arr1.length !== arr2.length) return false;
if (arr1?.length !== arr2?.length) return false;
const sortedArr1 = [...arr1].sort();
const sortedArr2 = [...arr2].sort();
Expand Down

0 comments on commit ddc0c1e

Please sign in to comment.