@visns-studio/visns-components 2.3.8 → 2.3.10

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.
@@ -133,6 +133,10 @@ const DataGrid = ({
133
133
  setModalShow(false);
134
134
  };
135
135
 
136
+ useEffect(() => {
137
+ setFormData(form);
138
+ }, [form]);
139
+
136
140
  /** Table States */
137
141
  const [dataReload, setDataReload] = useState(0);
138
142
  const [dSearch, setDSearch] = useState('');
@@ -393,7 +393,13 @@ const DataGrid = forwardRef(
393
393
  'width=1440,height=1024,menubar=1,resizable=1,status=1,titlebar=1,toolbar=1'
394
394
  );
395
395
  } else {
396
- modalOpen('update', rowProps.data[form.primaryKey]);
396
+ const updateSetting = settings.find(
397
+ (setting) => setting.id === 'update'
398
+ );
399
+
400
+ if (updateSetting) {
401
+ modalOpen('update', rowProps.data[form.primaryKey]);
402
+ }
397
403
  }
398
404
  }
399
405
  }, []);
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "react-dom": "^17.0.1"
43
43
  },
44
44
  "name": "@visns-studio/visns-components",
45
- "version": "2.3.8",
45
+ "version": "2.3.10",
46
46
  "description": "Various packages to assist in the development of our Custom Applications.",
47
47
  "main": "index.js",
48
48
  "scripts": {