@firecms/collection_editor 3.0.0-canary.244 → 3.0.0-canary.246

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/package.json CHANGED
@@ -1,19 +1,18 @@
1
1
  {
2
2
  "name": "@firecms/collection_editor",
3
3
  "type": "module",
4
- "version": "3.0.0-canary.244",
4
+ "version": "3.0.0-canary.246",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "source": "src/index.ts",
9
9
  "dependencies": {
10
- "@firecms/data_export": "^3.0.0-canary.244",
11
- "@firecms/data_import": "^3.0.0-canary.244",
12
- "@firecms/data_import_export": "^3.0.0-canary.244",
13
- "@firecms/formex": "^3.0.0-canary.244",
14
- "@firecms/schema_inference": "^3.0.0-canary.244",
15
- "@firecms/ui": "^3.0.0-canary.244",
16
- "@hello-pangea/dnd": "^17.0.0",
10
+ "@firecms/data_export": "^3.0.0-canary.246",
11
+ "@firecms/data_import": "^3.0.0-canary.246",
12
+ "@firecms/data_import_export": "^3.0.0-canary.246",
13
+ "@firecms/formex": "^3.0.0-canary.246",
14
+ "@firecms/schema_inference": "^3.0.0-canary.246",
15
+ "@firecms/ui": "^3.0.0-canary.246",
17
16
  "json5": "^2.2.3",
18
17
  "prism-react-renderer": "^2.4.1"
19
18
  },
@@ -70,5 +69,5 @@
70
69
  "publishConfig": {
71
70
  "access": "public"
72
71
  },
73
- "gitHead": "6b3dcdc942e0fd64e3023b5361c34ec2ac2bb1d3"
72
+ "gitHead": "0ba87a9533643d2d58455e02e99b4cab92beaf64"
74
73
  }
@@ -7,7 +7,6 @@ import {
7
7
  DEFAULT_FIELD_CONFIGS,
8
8
  getFieldConfig,
9
9
  getFieldId,
10
- isEmptyObject,
11
10
  isPropertyBuilder,
12
11
  isValidRegExp,
13
12
  mergeDeep,
@@ -384,7 +383,7 @@ function PropertyEditFormFields({
384
383
  }, [deferredValues, includeIdAndTitle, propertyNamespace]);
385
384
 
386
385
  useEffect(() => {
387
- if (values?.id && onError && !isEmptyObject(errors)) {
386
+ if (values?.id && onError) {
388
387
  onError(values?.id, propertyNamespace, errors);
389
388
  }
390
389
  }, [errors, propertyNamespace, values?.id]);