adminforth 1.0.70 → 1.0.71
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.
- package/dist/index.js +3 -4
- package/index.ts +3 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -788,11 +788,10 @@ class AdminForth {
|
|
|
788
788
|
for (const recordField in record) {
|
|
789
789
|
if (record[recordField] !== oldRecord[recordField]) {
|
|
790
790
|
const column = resource.columns.find((col) => col.name === recordField);
|
|
791
|
-
if (column.virtual) {
|
|
792
|
-
continue;
|
|
793
|
-
}
|
|
794
791
|
if (column) {
|
|
795
|
-
|
|
792
|
+
if (!column.virtual) {
|
|
793
|
+
newValues[recordField] = connector.setFieldValue(column, record[recordField]);
|
|
794
|
+
}
|
|
796
795
|
}
|
|
797
796
|
else {
|
|
798
797
|
newValues[recordField] = record[recordField];
|
package/index.ts
CHANGED
|
@@ -892,11 +892,10 @@ class AdminForth {
|
|
|
892
892
|
for (const recordField in record) {
|
|
893
893
|
if (record[recordField] !== oldRecord[recordField]) {
|
|
894
894
|
const column = resource.columns.find((col) => col.name === recordField);
|
|
895
|
-
if (column.virtual) {
|
|
896
|
-
continue
|
|
897
|
-
}
|
|
898
895
|
if (column) {
|
|
899
|
-
|
|
896
|
+
if (!column.virtual) {
|
|
897
|
+
newValues[recordField] = connector.setFieldValue(column, record[recordField]);
|
|
898
|
+
}
|
|
900
899
|
} else {
|
|
901
900
|
newValues[recordField] = record[recordField];
|
|
902
901
|
}
|