Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: compare diff (#12010)

ecmadao6ce2c5b9f39f
diff --git a/frontend/src/utils/v1/common.ts b/frontend/src/utils/v1/common.ts
index 6b9ef6ee86..63bb624860 100644
--- a/frontend/src/utils/v1/common.ts
+++ b/frontend/src/utils/v1/common.ts
@@ -1,4 +1,4 @@
-import { snakeCase } from "lodash-es";
+import { snakeCase, isEqual } from "lodash-es";
import { humanizeTs } from "../util";
export const calcUpdateMask = (a: any, b: any, toSnakeCase = false) => {
@@ -7,7 +7,7 @@ export const calcUpdateMask = (a: any, b: any, toSnakeCase = false) => {
const bKeys = new Set(Object.keys(b));
for (const key of aKeys) {
- if (a[key] !== b[key]) {
+ if (!isEqual(a[key], b[key])) {
updateMask.add(key);
}
bKeys.delete(key);