mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
[backport cloud/1.41] fix: prevent saving active workflow content to inactive tab on close (#10755)
Backport of #10745 to cloud/1.41. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-10755-backport-cloud-1-41-fix-prevent-saving-active-workflow-content-to-inactive-tab-on-clo-3336d73d365081849837df818e91b09e) by [Unito](https://www.unito.io)
This commit is contained in:
@@ -137,7 +137,7 @@ export const useWorkflowService = () => {
|
||||
}
|
||||
}
|
||||
|
||||
workflow.changeTracker?.checkState()
|
||||
if (workflowStore.isActive(workflow)) workflow.changeTracker?.checkState()
|
||||
|
||||
if (isSelfOverwrite) {
|
||||
await saveWorkflow(workflow)
|
||||
@@ -162,7 +162,7 @@ export const useWorkflowService = () => {
|
||||
if (workflow.isTemporary) {
|
||||
await saveWorkflowAs(workflow)
|
||||
} else {
|
||||
workflow.changeTracker?.checkState()
|
||||
if (workflowStore.isActive(workflow)) workflow.changeTracker?.checkState()
|
||||
|
||||
const isApp = workflow.initialMode === 'app'
|
||||
const expectedPath =
|
||||
|
||||
Reference in New Issue
Block a user