@trackunit/custom-field-components 0.0.676 → 0.0.678

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/index.cjs.js CHANGED
@@ -420,7 +420,7 @@ const useCustomFieldResolver = ({ field, register, setValue, formState, formValu
420
420
  return null;
421
421
  }
422
422
  const key = (_a = fieldId !== null && fieldId !== void 0 ? fieldId : field.definition.key) !== null && _a !== void 0 ? _a : "";
423
- const uniqueIdentifier = fieldId !== null && fieldId !== void 0 ? fieldId : field.definition.definitionId;
423
+ const uniqueIdentifier = fieldId !== null && fieldId !== void 0 ? fieldId : field.definition.id;
424
424
  const fieldError = key ? validation.formState.errors[key] : undefined;
425
425
  const errorMessage = fieldError ? fieldError.message + "" : undefined;
426
426
  const { description, title } = field.definition;
package/index.esm.js CHANGED
@@ -397,7 +397,7 @@ const useCustomFieldResolver = ({ field, register, setValue, formState, formValu
397
397
  return null;
398
398
  }
399
399
  const key = (_a = fieldId !== null && fieldId !== void 0 ? fieldId : field.definition.key) !== null && _a !== void 0 ? _a : "";
400
- const uniqueIdentifier = fieldId !== null && fieldId !== void 0 ? fieldId : field.definition.definitionId;
400
+ const uniqueIdentifier = fieldId !== null && fieldId !== void 0 ? fieldId : field.definition.id;
401
401
  const fieldError = key ? validation.formState.errors[key] : undefined;
402
402
  const errorMessage = fieldError ? fieldError.message + "" : undefined;
403
403
  const { description, title } = field.definition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/custom-field-components",
3
- "version": "0.0.676",
3
+ "version": "0.0.678",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {