@dartech/arsenal-ui 1.4.14 → 1.4.15
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +9 -7
- package/package.json +1 -1
package/index.js
CHANGED
@@ -5967,7 +5967,6 @@ const PropertyFiller = ({
|
|
5967
5967
|
useEffect(() => {
|
5968
5968
|
var _a;
|
5969
5969
|
if (!isDirty && isPropertyValueEmpty(value)) {
|
5970
|
-
console.log('setDefaultValue');
|
5971
5970
|
if (property.isRequired && (property.defaultValue === null || property.value === null)) {
|
5972
5971
|
setValue(name, (_a = prevValueRef.current[fillOption]) !== null && _a !== void 0 ? _a : defaultProperyValue, {
|
5973
5972
|
shouldDirty: true
|
@@ -5979,12 +5978,15 @@ const PropertyFiller = ({
|
|
5979
5978
|
}
|
5980
5979
|
}
|
5981
5980
|
}, [value, property, name, fillOption, isDirty, setValue, defaultProperyValue]);
|
5982
|
-
useEffect(() => {
|
5983
|
-
|
5984
|
-
|
5985
|
-
|
5986
|
-
|
5987
|
-
|
5981
|
+
// useEffect(() => {
|
5982
|
+
// if (
|
5983
|
+
// isPropertyValueEmpty(value) &&
|
5984
|
+
// property.propertyType !== PropertyType.JSON
|
5985
|
+
// ) {
|
5986
|
+
// console.log('setValue', name, value);
|
5987
|
+
// setValue(name, value);
|
5988
|
+
// }
|
5989
|
+
// }, [name, setValue, value, property]);
|
5988
5990
|
return jsxs(Grid, Object.assign({
|
5989
5991
|
xs: 12
|
5990
5992
|
}, {
|