@visns-studio/visns-components 5.0.26 → 5.0.27

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/package.json CHANGED
@@ -77,7 +77,7 @@
77
77
  "react-dom": "^17.0.0 || ^18.0.0"
78
78
  },
79
79
  "name": "@visns-studio/visns-components",
80
- "version": "5.0.26",
80
+ "version": "5.0.27",
81
81
  "description": "Various packages to assist in the development of our Custom Applications.",
82
82
  "main": "src/index.js",
83
83
  "files": [
@@ -1644,6 +1644,7 @@ function GenericDetail({
1644
1644
  dataId={routeParams[urlParam]}
1645
1645
  modalOpen={modalOpen}
1646
1646
  preloadedOptions={preloadedOptions}
1647
+ setData={setData}
1647
1648
  />
1648
1649
  );
1649
1650
  default:
@@ -18,6 +18,7 @@ const GenericEditableTable = ({
18
18
  dataId,
19
19
  modalOpen,
20
20
  preloadedOptions,
21
+ setData,
21
22
  }) => {
22
23
  const { columns, rows, form } = schedulingConfig;
23
24
 
@@ -42,7 +43,10 @@ const GenericEditableTable = ({
42
43
  updatedData
43
44
  );
44
45
  if (!res.error) {
45
- toast.success('Template updated successfully');
46
+ if (res.data?.data) {
47
+ setData(res.data.data);
48
+ }
49
+ // toast.success('Template updated successfully');
46
50
  } else {
47
51
  toast.error(res.error);
48
52
  }