fix: remove unnecessary snippet

This commit is contained in:
hexastack 2024-10-31 10:39:34 +01:00
parent 9ab93f1bcf
commit ce20bb725a

View File

@ -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({