mirror of
https://github.com/docmost/docmost.git
synced 2026-08-25 01:12:12 +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({
|
qc.invalidateQueries({
|
||||||
queryKey: ["integration-connection", variables.integrationId],
|
queryKey: ["integration-connection", variables.integrationId],
|
||||||
});
|
});
|
||||||
|
qc.removeQueries({ queryKey: ["unfurl"] });
|
||||||
},
|
},
|
||||||
onError: (error) => {
|
onError: (error) => {
|
||||||
const errorMessage = error["response"]?.data?.message;
|
const errorMessage = error["response"]?.data?.message;
|
||||||
|
|||||||
Reference in New Issue
Block a user