adminforth 2.17.0-next.4 → 2.17.0-next.5

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.
@@ -448,9 +448,10 @@ export function createSearchInputHandlers(
448
448
 
449
449
  export function checkShowIf(c: AdminForthResourceColumnInputCommon, record: Record<string, any>, allColumns: AdminForthResourceColumnInputCommon[]) {
450
450
  if (!c.showIf) return true;
451
+ const recordCopy = { ...record };
451
452
  for (const col of allColumns) {
452
- if (!record[col.name]) {
453
- record[col.name] = null;
453
+ if (!recordCopy[col.name]) {
454
+ recordCopy[col.name] = null;
454
455
  }
455
456
  }
456
457
  const evaluatePredicate = (predicate: Predicate): boolean => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.17.0-next.4",
3
+ "version": "2.17.0-next.5",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",