fix: model list delete action update
This commit is contained in:
@@ -5,6 +5,23 @@
|
|||||||
font-weight: var(--font-weight-normal);
|
font-weight: var(--font-weight-normal);
|
||||||
padding-inline: 0;
|
padding-inline: 0;
|
||||||
padding-block: 1.2em;
|
padding-block: 1.2em;
|
||||||
|
|
||||||
|
&::-webkit-scrollbar {
|
||||||
|
height: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-scrollbar-thumb {
|
||||||
|
background-color: rgba(211, 211, 220, 100%);
|
||||||
|
border-radius: 6px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: rgba(190, 190, 190, 100%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-scrollbar-track {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.code-pre {
|
.code-pre {
|
||||||
|
|||||||
@@ -75,14 +75,10 @@ export function useUpdateChunkedList(options: {
|
|||||||
return !_.includes(ids, item.id);
|
return !_.includes(ids, item.id);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
// console.log('updateChunkedList=====delete', updatedList);
|
options.setDataList?.([...cacheDataListRef.current]);
|
||||||
// return updatedList;
|
|
||||||
|
|
||||||
// options.setDataList?.([...cacheDataListRef.current]);
|
|
||||||
}
|
}
|
||||||
// UPDATE
|
// UPDATE
|
||||||
if (data?.type === WatchEventType.UPDATE) {
|
if (data?.type === WatchEventType.UPDATE) {
|
||||||
// const updatedDataList = _.cloneDeep(dataList);
|
|
||||||
_.each(collections, (item: any) => {
|
_.each(collections, (item: any) => {
|
||||||
const updateIndex = _.findIndex(
|
const updateIndex = _.findIndex(
|
||||||
cacheDataListRef.current,
|
cacheDataListRef.current,
|
||||||
|
|||||||
Reference in New Issue
Block a user