mirror of
https://github.com/docmost/docmost.git
synced 2026-08-20 02:21:35 +10:00
fix(integration): drop cached unfurls when disconnecting an integration
This commit is contained in:
@@ -104,6 +104,7 @@ export function useDisconnectIntegration() {
|
||||
qc.invalidateQueries({
|
||||
queryKey: ["integration-connection", variables.integrationId],
|
||||
});
|
||||
qc.removeQueries({ queryKey: ["unfurl"] });
|
||||
},
|
||||
onError: (error) => {
|
||||
const errorMessage = error["response"]?.data?.message;
|
||||
|
||||
Reference in New Issue
Block a user