mirror of
https://github.com/docmost/docmost.git
synced 2026-08-15 08:01:36 +10:00
fix(integration): refresh connections list after disconnect
This commit is contained in:
@@ -104,6 +104,8 @@ export function useDisconnectIntegration() {
|
||||
qc.invalidateQueries({
|
||||
queryKey: ["integration-connection", variables.integrationId],
|
||||
});
|
||||
qc.invalidateQueries({ queryKey: ["my-connections"] });
|
||||
// removeQueries, not invalidate: refetchOnMount false would revive stale entries
|
||||
qc.removeQueries({ queryKey: ["unfurl"] });
|
||||
},
|
||||
onError: (error) => {
|
||||
|
||||
Reference in New Issue
Block a user