File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1306,7 +1306,7 @@ export class ComfyApp {
13061306 workflow ,
13071307 this . graph . serialize ( ) as unknown as ComfyWorkflowJSON
13081308 )
1309- useSubgraphNavigationStore ( ) . updateHash ( )
1309+ void useSubgraphNavigationStore ( ) . updateHash ( )
13101310 requestAnimationFrame ( ( ) => {
13111311 this . graph . setDirtyCanvas ( true , true )
13121312 } )
Original file line number Diff line number Diff line change @@ -204,21 +204,23 @@ export const useSubgraphNavigationStore = defineStore(
204204 }
205205 }
206206
207- function updateHash ( ) {
207+ async function updateHash ( ) {
208208 if ( blockHashUpdate ) return
209209 if ( ! routeHash . value ) {
210- router . replace ( '#' + ( window . location . hash . slice ( 1 ) || app . graph . id ) )
210+ await router . replace (
211+ '#' + ( window . location . hash . slice ( 1 ) || app . graph . id )
212+ )
211213 } else if ( initialLoad ) {
212214 initialLoad = false
213- navigateToHash ( routeHash . value )
215+ await navigateToHash ( routeHash . value )
214216 const graph = canvasStore . getCanvas ( ) . graph
215217 if ( isSubgraph ( graph ) ) workflowStore . activeSubgraph = graph
216218 return
217219 }
218220 const newId = canvasStore . getCanvas ( ) . graph ?. id ?? ''
219221 const currentId = window . location . hash . slice ( 1 )
220222 if ( ! newId || newId === ( currentId || app . graph . id ) ) return
221- router . push ( '#' + newId )
223+ await router . push ( '#' + newId )
222224 }
223225 //update navigation hash
224226 //NOTE: Doesn't apply on workflow load
You can’t perform that action at this time.
0 commit comments