fix: prevent showing outputs in app mode when no output nodes configured (#9625)

## Summary

After a user runs the workflow once in graph mode, switching to app mode
with no app built, incorrectly showed the app mode outputs view instead
of the intro screen

## Changes

- **What**: don't try and select outputs if no outputs & filter out all
outputs when nothing chosen
This commit is contained in:
pythongosssss
2026-03-09 00:36:15 +00:00
committed by GitHub
parent 308c22efc6
commit 892a9cf2c5
3 changed files with 16 additions and 6 deletions

View File

@@ -65,7 +65,7 @@ export function useOutputHistory(): {
function filterByOutputNodes(items: ResultItemImpl[]): ResultItemImpl[] {
const nodeIds = appModeStore.selectedOutputs
if (!nodeIds.length) return items
if (!nodeIds.length) return []
return items.filter((r) =>
nodeIds.some((id) => String(id) === String(r.nodeId))
)