adminforth 2.1.0-next.8 → 2.1.0-next.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -147,7 +147,15 @@ async function saveRecord() {
|
|
|
147
147
|
saving.value = true;
|
|
148
148
|
const updates = {};
|
|
149
149
|
for (const key in record.value) {
|
|
150
|
-
let columnIsUpdated =
|
|
150
|
+
let columnIsUpdated = false;
|
|
151
|
+
|
|
152
|
+
if (typeof record.value[key] !== typeof coreStore.record[key]) {
|
|
153
|
+
columnIsUpdated = true;
|
|
154
|
+
} else if (typeof record.value[key] === 'object') {
|
|
155
|
+
columnIsUpdated = JSON.stringify(record.value[key]) !== JSON.stringify(coreStore.record[key]);
|
|
156
|
+
} else {
|
|
157
|
+
columnIsUpdated = record.value[key] !== coreStore.record[key];
|
|
158
|
+
}
|
|
151
159
|
|
|
152
160
|
const column = coreStore.resource.columns.find((c) => c.name === key);
|
|
153
161
|
|