From 4626b4a477f028a3da0be762848953be4fedb9c0 Mon Sep 17 00:00:00 2001 From: mbecker20 Date: Wed, 25 Mar 2026 02:27:46 -0700 Subject: [PATCH] fix deep compare short path for falsy / null --- ui/src/lib/utils.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/src/lib/utils.ts b/ui/src/lib/utils.ts index 56917df38..8885953a3 100644 --- a/ui/src/lib/utils.ts +++ b/ui/src/lib/utils.ts @@ -357,6 +357,11 @@ export function listsEqual(a: string[], b: string[]) { * @returns a === b */ export function deepCompare(a: any, b: any) { + // Short path for falsy. Important to catch typeof null === "object" edge case. + if (!a || !b) { + return a === b; + } + const ta = typeof a; const tb = typeof b;