@trackunit/custom-field-components 0.0.676 → 0.0.677
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 +1 -1
- package/index.esm.js +1 -1
- package/package.json +1 -1
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.
|
|
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.
|
|
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;
|