@nestledjs/data-browser 0.1.24 → 0.1.25

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.
@@ -137,8 +137,8 @@ function AdminDataListPage({ modelName: propModelName } = {}) {
137
137
  return (model == null ? void 0 : model.pluralModelPropertyName) || pluralParam.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
138
138
  }, [model, pluralParam]);
139
139
  const paginationPath = useMemo(() => {
140
- return model ? `${model.pluralModelPropertyName}_meta` : `${dataPath}_meta`;
141
- }, [model, dataPath]);
140
+ return "counters";
141
+ }, []);
142
142
  const fieldNames = useMemo(() => {
143
143
  if (!model) return [];
144
144
  return model.fields.filter((field) => !field.relationName || !field.isList).map((field) => field.name);
@@ -429,9 +429,7 @@ function cleanFormInput(input, model) {
429
429
  if (typeof value === "string") {
430
430
  const field = (_c = model == null ? void 0 : model.fields) == null ? void 0 : _c.find((f) => f.name === key);
431
431
  const convertedValue = convertStringValue(value, field);
432
- if (convertedValue !== null) {
433
- cleaned[key] = convertedValue;
434
- }
432
+ cleaned[key] = convertedValue;
435
433
  continue;
436
434
  }
437
435
  if (typeof value === "object" && value !== null && !Array.isArray(value)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestledjs/data-browser",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "description": "Universal admin data browser for Nestled framework projects with full CRUD operations",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -38,7 +38,7 @@
38
38
  "@apollo/client": "^4.0.0",
39
39
  "@heroicons/react": "^2.0.0",
40
40
  "@nestledjs/forms": "^0.5.0",
41
- "@nestledjs/shared-components": "^0.1.24",
41
+ "@nestledjs/shared-components": "^0.1.25",
42
42
  "react": "^19.0.0",
43
43
  "react-router": "^7.0.0"
44
44
  },