fix: model list delete action update

This commit is contained in:
jialin
2024-07-22 10:27:49 +08:00
parent 177ebd1bbe
commit 20a2443d5f
2 changed files with 18 additions and 5 deletions
+1 -5
View File
@@ -75,14 +75,10 @@ export function useUpdateChunkedList(options: {
return !_.includes(ids, item.id);
}
);
// console.log('updateChunkedList=====delete', updatedList);
// return updatedList;
// options.setDataList?.([...cacheDataListRef.current]);
options.setDataList?.([...cacheDataListRef.current]);
}
// UPDATE
if (data?.type === WatchEventType.UPDATE) {
// const updatedDataList = _.cloneDeep(dataList);
_.each(collections, (item: any) => {
const updateIndex = _.findIndex(
cacheDataListRef.current,