mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-02 11:40:00 +00:00
Fix linting
This commit is contained in:
@@ -1323,7 +1323,7 @@ export class ComfyApp {
|
||||
workflow,
|
||||
this.rootGraph.serialize() as unknown as ComfyWorkflowJSON
|
||||
)
|
||||
useSubgraphNavigationStore().updateHash()
|
||||
void useSubgraphNavigationStore().updateHash()
|
||||
requestAnimationFrame(() => {
|
||||
this.canvas.setDirty(true, true)
|
||||
})
|
||||
|
||||
@@ -204,13 +204,15 @@ export const useSubgraphNavigationStore = defineStore(
|
||||
}
|
||||
}
|
||||
|
||||
function updateHash() {
|
||||
async function updateHash() {
|
||||
if (blockHashUpdate) return
|
||||
if (!routeHash.value) {
|
||||
router.replace('#' + (window.location.hash.slice(1) || app.graph.id))
|
||||
await router.replace(
|
||||
'#' + (window.location.hash.slice(1) || app.graph.id)
|
||||
)
|
||||
} else if (initialLoad) {
|
||||
initialLoad = false
|
||||
navigateToHash(routeHash.value)
|
||||
await navigateToHash(routeHash.value)
|
||||
const graph = canvasStore.getCanvas().graph
|
||||
if (isSubgraph(graph)) workflowStore.activeSubgraph = graph
|
||||
return
|
||||
@@ -218,7 +220,7 @@ export const useSubgraphNavigationStore = defineStore(
|
||||
const newId = canvasStore.getCanvas().graph?.id ?? ''
|
||||
const currentId = window.location.hash.slice(1)
|
||||
if (!newId || newId === (currentId || app.graph.id)) return
|
||||
router.push('#' + newId)
|
||||
await router.push('#' + newId)
|
||||
}
|
||||
//update navigation hash
|
||||
//NOTE: Doesn't apply on workflow load
|
||||
|
||||
Reference in New Issue
Block a user