@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.
Files changed (2) hide show
  1. package/index.js +9 -7
  2. 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
- if (!isPropertyValueEmpty(value) && property.propertyType !== PropertyType.JSON) {
5984
- console.log('setValue');
5985
- setValue(name, value);
5986
- }
5987
- }, [name, setValue, value, property]);
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
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dartech/arsenal-ui",
3
- "version": "1.4.14",
3
+ "version": "1.4.15",
4
4
  "author": "DAR",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"