Skip to content

Commit fb50084

Browse files
committed
Handle multi-remove mutation errors safely
1 parent 23cf0a6 commit fb50084

File tree

1 file changed

+7
-5
lines changed
  • apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-tabs

1 file changed

+7
-5
lines changed

apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-tabs/resource-tabs.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,13 @@ export function ResourceTabs({
272272
if (persistable.length > 0) {
273273
void (async () => {
274274
for (const r of persistable) {
275-
await removeResource.mutateAsync({
276-
chatId,
277-
resourceType: r.type,
278-
resourceId: r.id,
279-
})
275+
await removeResource
276+
.mutateAsync({
277+
chatId,
278+
resourceType: r.type,
279+
resourceId: r.id,
280+
})
281+
.catch(() => undefined)
280282
}
281283
})()
282284
}

0 commit comments

Comments
 (0)