Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: database

Vanessadc7f9f6ef64f
diff --git a/app/src/util/functions.ts b/app/src/util/functions.ts
index 3733d5225d..0812607f86 100644
--- a/app/src/util/functions.ts
+++ b/app/src/util/functions.ts
@@ -82,6 +82,7 @@ export const looseJsonParse = (text: string) => {
export const objEquals = (a: any, b: any): boolean => {
if (a === b) return true;
+ if (typeof a === "number" && isNaN(a) && typeof b === "number" && isNaN(b)) return true;
if (a instanceof Date && b instanceof Date) return a.getTime() === b.getTime();
if (!a || !b || (typeof a !== "object" && typeof b !== "object")) return a === b;
if (a.prototype !== b.prototype) return false;