@knovator/pagecreator-admin 1.6.3 → 1.6.4

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.
Files changed (3) hide show
  1. package/index.cjs +2 -2
  2. package/index.js +2 -2
  3. package/package.json +1 -1
package/index.cjs CHANGED
@@ -7244,8 +7244,8 @@ const WidgetForm = ({
7244
7244
  if ((response === null || response === void 0 ? void 0 : response.code) === 'SUCCESS' && Array.isArray((_a = response.data) === null || _a === void 0 ? void 0 : _a.docs)) {
7245
7245
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
7246
7246
  const categories = response.data.docs.map(cat => ({
7247
- value: cat._id,
7248
- label: cat.name,
7247
+ value: cat._id || cat.id,
7248
+ label: cat.name || cat.nm || cat.label,
7249
7249
  slug: cat.slug
7250
7250
  }));
7251
7251
  setBlogCategories(categories);
package/index.js CHANGED
@@ -7232,8 +7232,8 @@ const WidgetForm = ({
7232
7232
  if ((response === null || response === void 0 ? void 0 : response.code) === 'SUCCESS' && Array.isArray((_a = response.data) === null || _a === void 0 ? void 0 : _a.docs)) {
7233
7233
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
7234
7234
  const categories = response.data.docs.map(cat => ({
7235
- value: cat._id,
7236
- label: cat.name,
7235
+ value: cat._id || cat.id,
7236
+ label: cat.name || cat.nm || cat.label,
7237
7237
  slug: cat.slug
7238
7238
  }));
7239
7239
  setBlogCategories(categories);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knovator/pagecreator-admin",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "dependencies": {
5
5
  "classnames": "^2.3.1",
6
6
  "react-beautiful-dnd": "^13.1.0",