trithuc-mvc-react 3.3.5 → 3.3.6

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.
@@ -127,6 +127,7 @@ const DataTable = ({ multipleActions = [], page, setPage = () => {}, disableEdit
127
127
  }
128
128
  setSelectedItems([]);
129
129
  queryClient.invalidateQueries({ queryKey: [tableName] });
130
+ queryClient.invalidateQueries({ queryKey: [tableName, "CountAllTrangThaiXuly"] });
130
131
  },
131
132
  onError: (error) => {
132
133
  if (error.response && error.response.data) {
@@ -80,6 +80,7 @@ const DataTableSM = ({ multipleActions = [], page, setPage = () => {}, disableEd
80
80
  toast.success("Thay đổi trạng thái thành công !");
81
81
  }
82
82
  queryClient.invalidateQueries({ queryKey: [tableName] });
83
+ queryClient.invalidateQueries({ queryKey: [tableName, "CountAllTrangThaiXuly"] });
83
84
  },
84
85
  onError: (error) => {
85
86
  if (error.response && error.response.data && error.response.data.errors) {
@@ -108,6 +109,7 @@ const DataTableSM = ({ multipleActions = [], page, setPage = () => {}, disableEd
108
109
  }
109
110
 
110
111
  queryClient.invalidateQueries({ queryKey: [tableName] });
112
+ queryClient.invalidateQueries({ queryKey: [tableName, "CountAllTrangThaiXuly"] });
111
113
  },
112
114
  onError: (error) => {
113
115
  if (error.response && error.response.data && error.response.data.errors) {
@@ -132,6 +134,7 @@ const DataTableSM = ({ multipleActions = [], page, setPage = () => {}, disableEd
132
134
  }
133
135
  setSelectedItems([]);
134
136
  queryClient.invalidateQueries({ queryKey: [tableName] });
137
+ queryClient.invalidateQueries({ queryKey: [tableName, "CountAllTrangThaiXuly"] });
135
138
  },
136
139
  onError: (error) => {
137
140
  if (error.response && error.response.data && error.response.data.errors) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trithuc-mvc-react",
3
- "version": "3.3.5",
3
+ "version": "3.3.6",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"