mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
fix: restore selectedOutputs filter and fix oxlint console error
- Restore output node filtering in linearOutputStore that was accidentally removed, fixing the skips-unselected-outputs test - Fix oxlint no-console error in perfReporter with proper disable Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -41,7 +41,8 @@ export function logMeasurement(
|
||||
if (formatter) return formatter(m)
|
||||
return `${f}=${m[f]}`
|
||||
})
|
||||
|
||||
|
||||
// oxlint-disable-next-line no-console -- perf reporter intentionally logs
|
||||
console.log(`${label}: ${parts.join(', ')}`)
|
||||
}
|
||||
|
||||
|
||||
@@ -8,12 +8,13 @@ import type { InProgressItem } from '@/renderer/extensions/linearMode/linearMode
|
||||
import type { ResultItemImpl } from '@/stores/queueStore'
|
||||
import type { ExecutedWsMessage } from '@/schemas/apiSchema'
|
||||
import { api } from '@/scripts/api'
|
||||
|
||||
import { useAppModeStore } from '@/stores/appModeStore'
|
||||
import { useExecutionStore } from '@/stores/executionStore'
|
||||
import { useJobPreviewStore } from '@/stores/jobPreviewStore'
|
||||
|
||||
export const useLinearOutputStore = defineStore('linearOutput', () => {
|
||||
const { isAppMode } = useAppMode()
|
||||
const appModeStore = useAppModeStore()
|
||||
const executionStore = useExecutionStore()
|
||||
const jobPreviewStore = useJobPreviewStore()
|
||||
const workflowStore = useWorkflowStore()
|
||||
@@ -116,9 +117,13 @@ export const useLinearOutputStore = defineStore('linearOutput', () => {
|
||||
const newOutputs = flattenNodeOutput([nodeId, detail.output])
|
||||
if (newOutputs.length === 0) return
|
||||
|
||||
// Track in-progress items for all output nodes, regardless of
|
||||
// which ones are selected for the grid view. This ensures the
|
||||
// full history shows every generated output.
|
||||
// Skip output items for nodes not flagged as output nodes
|
||||
const outputNodeIds = appModeStore.selectedOutputs
|
||||
if (
|
||||
outputNodeIds.length > 0 &&
|
||||
!outputNodeIds.some((id) => String(id) === String(nodeId))
|
||||
)
|
||||
return
|
||||
|
||||
const skeletonItem = inProgressItems.value.find(
|
||||
(i) => i.id === currentSkeletonId.value && i.jobId === jobId
|
||||
|
||||
Reference in New Issue
Block a user