@dartech/arsenal-ui 1.3.91 → 1.3.92

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 (2) hide show
  1. package/index.js +5 -13
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -4503,7 +4503,7 @@ const PropertyValueField = ({
4503
4503
  watch
4504
4504
  } = useFormContext();
4505
4505
  const propertyType = watch(`${propertyFieldName}.propertyType`);
4506
- const isMultiple = `${propertyFieldName}.isMultiple`;
4506
+ const isMultiple = watch(`${propertyFieldName}.isMultiple`);
4507
4507
  const format = watch(`${propertyFieldName}.format`);
4508
4508
  const restrictedValues = watch(`${propertyFieldName}.restrictedValues`);
4509
4509
  const properties = watch(`${propertyFieldName}.properties`);
@@ -4526,6 +4526,7 @@ const PropertyValueField = ({
4526
4526
  validationNode: null
4527
4527
  };
4528
4528
  }, [propertyType, format, restrictedValues, isMultiple, _label, isRequired, properties, required]);
4529
+ console.log('isMultiple', isMultiple);
4529
4530
  return isMultiple ? jsx(MultiplePropertyFiller, {
4530
4531
  name: name,
4531
4532
  property: fillerProperty,
@@ -4949,18 +4950,9 @@ const CreatePropertyFormFields = ({
4949
4950
  setValue,
4950
4951
  watch
4951
4952
  } = useFormContext();
4952
- const propertyType = useWatch({
4953
- control,
4954
- name: `${propertyFieldName}.propertyType`
4955
- });
4956
- const isMultiple = useWatch({
4957
- control,
4958
- name: `${propertyFieldName}.isMultiple`
4959
- });
4960
- const isRequired = useWatch({
4961
- control,
4962
- name: `${propertyFieldName}.isRequired`
4963
- });
4953
+ const propertyType = watch(`${propertyFieldName}.propertyType`);
4954
+ const isMultiple = watch(`${propertyFieldName}.isMultiple`);
4955
+ const isRequired = watch(`${propertyFieldName}.isRequired`);
4964
4956
  const {
4965
4957
  customCheckboxes,
4966
4958
  customFields
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dartech/arsenal-ui",
3
- "version": "1.3.91",
3
+ "version": "1.3.92",
4
4
  "author": "DAR",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"