@webitel/ui-sdk 3.2.79 → 3.2.80
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
|
@@ -124,14 +124,20 @@ export default class TableStoreModule extends BaseStoreModule {
|
|
|
124
124
|
}) => {
|
|
125
125
|
await context.commit('PATCH_ITEM_PROPERTY', { index, prop, value });
|
|
126
126
|
const id = item?.id || context.state.dataList[index].id;
|
|
127
|
+
const { etag } = item;
|
|
127
128
|
const changes = { [prop]: value };
|
|
128
129
|
try {
|
|
129
|
-
await context.dispatch('api/PATCH_ITEM', {
|
|
130
|
+
await context.dispatch('api/PATCH_ITEM', {
|
|
131
|
+
context,
|
|
132
|
+
id,
|
|
133
|
+
etag,
|
|
134
|
+
changes,
|
|
135
|
+
});
|
|
130
136
|
context.commit('PATCH_ITEM_PROPERTY', {
|
|
131
137
|
item, index, prop, value,
|
|
132
138
|
});
|
|
133
139
|
} catch {
|
|
134
|
-
context.dispatch('LOAD_DATA_LIST');
|
|
140
|
+
await context.dispatch('LOAD_DATA_LIST');
|
|
135
141
|
}
|
|
136
142
|
},
|
|
137
143
|
DELETE: async (context, deleted) => {
|