Skip to content

Commit a87f4c6

Browse files
committed
Fix linting
1 parent eb362ab commit a87f4c6

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/scripts/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
})

src/stores/subgraphNavigationStore.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)