fix(useApplyChanges): catch rejection from fire-and-forget conflict analysis

void discards the promise entirely; .catch() preserves the
fire-and-forget intent while preventing a silent unhandled rejection
if runFullConflictAnalysis throws asynchronously.
This commit is contained in:
jaeone94
2026-02-24 14:01:08 +09:00
parent a7d33edc4d
commit d9b2e1204f

View File

@@ -31,7 +31,9 @@ export const useApplyChanges = createSharedComposable(() => {
comfyManagerStore.setStale()
await useCommandStore().execute('Comfy.RefreshNodeDefinitions')
await useWorkflowService().reloadCurrentWorkflow()
void runFullConflictAnalysis()
runFullConflictAnalysis().catch((err) => {
console.error('[useApplyChanges] Conflict analysis failed:', err)
})
} catch (err) {
console.error('[useApplyChanges] Post-reconnect tasks failed:', err)
} finally {