mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
nit
This commit is contained in:
@@ -33,7 +33,7 @@ const items = computed(() => {
|
|||||||
|
|
||||||
return navigationStore.navigationStack.map<MenuItem>((subgraph) => ({
|
return navigationStore.navigationStack.map<MenuItem>((subgraph) => ({
|
||||||
label: subgraph.name,
|
label: subgraph.name,
|
||||||
command: async () => {
|
command: () => {
|
||||||
const canvas = useCanvasStore().getCanvas()
|
const canvas = useCanvasStore().getCanvas()
|
||||||
if (!canvas.graph) throw new TypeError('Canvas has no graph')
|
if (!canvas.graph) throw new TypeError('Canvas has no graph')
|
||||||
|
|
||||||
@@ -45,7 +45,7 @@ const items = computed(() => {
|
|||||||
const home = computed(() => ({
|
const home = computed(() => ({
|
||||||
label: workflowName.value,
|
label: workflowName.value,
|
||||||
icon: 'pi pi-home',
|
icon: 'pi pi-home',
|
||||||
command: async () => {
|
command: () => {
|
||||||
const canvas = useCanvasStore().getCanvas()
|
const canvas = useCanvasStore().getCanvas()
|
||||||
if (!canvas.graph) throw new TypeError('Canvas has no graph')
|
if (!canvas.graph) throw new TypeError('Canvas has no graph')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user