π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix compare immutable
Fendy Heryanto85365fafd776
diff --git a/packages/nocodb/src/utils/view-webhook-manager.ts b/packages/nocodb/src/utils/view-webhook-manager.tsindex 324b9a10b7..43ba87938c 100644--- a/packages/nocodb/src/utils/view-webhook-manager.ts+++ b/packages/nocodb/src/utils/view-webhook-manager.ts@@ -157,13 +157,19 @@ export class ViewWebhookManager {}isOldAndNewEqual(oldView, newView) {- oldView.created_at = null;- oldView.updated_at = null;- newView.created_at = null;- newView.updated_at = null;+ const compareOld = {+ ...oldView,+ created_at: null,+ updated_at: null,+ };+ const compareNew = {+ ...newView,+ created_at: null,+ updated_at: null,+ };return (- JSON.stringify(objRemoveEmptyStringProps(oldView)) ===- JSON.stringify(objRemoveEmptyStringProps(newView))+ JSON.stringify(objRemoveEmptyStringProps(compareOld)) ===+ JSON.stringify(objRemoveEmptyStringProps(compareNew)));}