mirror of
https://github.com/hexastack/hexabot
synced 2024-11-24 04:53:41 +00:00
fix: remove unnecessary snippet
This commit is contained in:
parent
9ab93f1bcf
commit
ce20bb725a
@ -453,28 +453,12 @@ const Diagrams = () => {
|
||||
|
||||
if (ids) {
|
||||
for (const blockId of ids) {
|
||||
const block = getBlockFromCache(blockId);
|
||||
|
||||
await updateBlock(
|
||||
{
|
||||
await updateBlock({
|
||||
id: blockId,
|
||||
params: {
|
||||
category: newCategoryId,
|
||||
},
|
||||
},
|
||||
{
|
||||
onSuccess() {
|
||||
updateCachedBlock({
|
||||
id: blockId,
|
||||
payload: {
|
||||
...block,
|
||||
category: newCategoryId,
|
||||
},
|
||||
strategy: "overwrite",
|
||||
});
|
||||
},
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
queryClient.removeQueries({
|
||||
|
Loading…
Reference in New Issue
Block a user