invalidate problems when version is reverted (#546)
This commit is contained in:
@@ -60,6 +60,9 @@ export function useVersions(appId: number | null) {
|
|||||||
const chat = await IpcClient.getInstance().getChat(selectedChatId);
|
const chat = await IpcClient.getInstance().getChat(selectedChatId);
|
||||||
setMessages(chat.messages);
|
setMessages(chat.messages);
|
||||||
}
|
}
|
||||||
|
await queryClient.invalidateQueries({
|
||||||
|
queryKey: ["problems", appId],
|
||||||
|
});
|
||||||
},
|
},
|
||||||
meta: { showErrorToast: true },
|
meta: { showErrorToast: true },
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user