mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Invalidate git status after every git action
This commit is contained in:
1 file changed
+4
-4
@@ -79,7 +79,10 @@ export function SyncStep({ projectId, remoteUrl }: SyncStepProps) {
|
||||
setIsSyncing(false);
|
||||
setCurrentOperation(null);
|
||||
}
|
||||
}, [remoteUrl]);
|
||||
|
||||
// Invalidate git status to refresh UI
|
||||
queryClient.invalidateQueries({ queryKey: ['git-status', projectId] });
|
||||
}, [projectId, queryClient, remoteUrl]);
|
||||
|
||||
const handleSync = async () => {
|
||||
await executeGitOperation('sync', async () => {
|
||||
@@ -132,9 +135,6 @@ export function SyncStep({ projectId, remoteUrl }: SyncStepProps) {
|
||||
ref,
|
||||
force: true,
|
||||
});
|
||||
|
||||
// Invalidate git status to refresh UI
|
||||
queryClient.invalidateQueries({ queryKey: ['git-status', projectId] });
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user