Invalidate git status after every git action

This commit is contained in:
Alex Gleason committed 2025-12-25 00:23:13 -06:00
1 parent 0fa4d3a199
commit 83fec3f6d6
1 file changed
+4 -4
+4 -4
View File
@@ -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] });
});
};