mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-22 07:19:41 +00:00
Consistently use -1 for temporary file size (#1464)
This commit is contained in:
@@ -65,7 +65,7 @@ export class UserFile {
|
||||
}
|
||||
|
||||
get isTemporary() {
|
||||
return this.size === 0
|
||||
return this.size === -1
|
||||
}
|
||||
|
||||
get isPersisted() {
|
||||
|
||||
@@ -215,7 +215,7 @@ export const useWorkflowStore = defineStore('workflow', () => {
|
||||
const workflow = new ComfyWorkflow({
|
||||
path: fullPath,
|
||||
modified: Date.now(),
|
||||
size: 0
|
||||
size: -1
|
||||
})
|
||||
|
||||
workflow.originalContent = workflow.content = workflowData
|
||||
|
||||
Reference in New Issue
Block a user