mirror of
https://github.com/Dictionarry-Hub/profilarr.git
synced 2026-01-30 14:20:59 +01:00
fix: refresh git status after resolving conflict
This commit is contained in:
@@ -399,10 +399,14 @@ const ResolveConflicts = ({
|
||||
|
||||
try {
|
||||
const result = await resolveConflict(resolutions);
|
||||
Alert.success('Successfully resolved conflicts');
|
||||
if (result.error) {
|
||||
Alert.warning(result.error);
|
||||
return;
|
||||
}
|
||||
|
||||
Alert.success('Successfully resolved conflicts');
|
||||
await fetchGitStatus(); // Add this to refresh the status
|
||||
onClose(); // Close the modal after successful resolution
|
||||
} catch (error) {
|
||||
Alert.error(error.message || 'Failed to resolve conflicts');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user