mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user