@dartech/arsenal-ui 1.3.78 → 1.3.80
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.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
@@ -3935,7 +3935,7 @@ const usePropertyFiller = ({
|
|
3935
3935
|
return {};
|
3936
3936
|
}
|
3937
3937
|
}, [propertyType]);
|
3938
|
-
const needRecursionCheck = useMemo(() => propertyType === PropertyType.JSON, [propertyType]);
|
3938
|
+
const needRecursionCheck = useMemo(() => propertyType === PropertyType.JSON || propertyType === PropertyType.ANY, [propertyType]);
|
3939
3939
|
const checkFillOption = useCallback(() => {
|
3940
3940
|
if (isExpression(value, needRecursionCheck)) {
|
3941
3941
|
setFillOption('expression');
|
@@ -4084,10 +4084,10 @@ const PropertyFiller = ({
|
|
4084
4084
|
clearErrors();
|
4085
4085
|
}, [name, defaultProperyValue, clearErrors, value, setFillOption, fillOption, propertyType, setValue, property]);
|
4086
4086
|
useEffect(() => {
|
4087
|
-
if (!isDirty && property.defaultValue) {
|
4087
|
+
if (!isDirty && property.defaultValue && !value) {
|
4088
4088
|
setValue(name, property.defaultValue);
|
4089
4089
|
}
|
4090
|
-
}, [isDirty, property, name, setValue]);
|
4090
|
+
}, [isDirty, property, name, setValue, value]);
|
4091
4091
|
useEffect(() => {
|
4092
4092
|
var _a;
|
4093
4093
|
if (value === undefined || property.isRequired && value === null && !property.defaultValue) {
|