invalidate problems when version is reverted (#546)

This commit is contained in:
Will Chen
2025-07-02 16:11:37 -07:00
committed by GitHub
parent cf11cc6f23
commit bd715a2ea0

View File

@@ -60,6 +60,9 @@ export function useVersions(appId: number | null) {
const chat = await IpcClient.getInstance().getChat(selectedChatId);
setMessages(chat.messages);
}
await queryClient.invalidateQueries({
queryKey: ["problems", appId],
});
},
meta: { showErrorToast: true },
},