mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
fix: guard configured event to prevent state wipe during editing
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -350,7 +350,13 @@ export const useAppModeStore = defineStore('appMode', () => {
|
||||
useEventListener(
|
||||
() => app.rootGraph?.events,
|
||||
'configured',
|
||||
resetSelectedToWorkflow
|
||||
() => {
|
||||
// Only reload from saved state during graph loading, not while
|
||||
// the user is actively editing in builder/app mode.
|
||||
if (!isBuilderMode.value && !isAppMode.value) {
|
||||
resetSelectedToWorkflow()
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
function persistLinearData() {
|
||||
|
||||
Reference in New Issue
Block a user