fix: remove debug console.warn statements from preview hot paths

This commit is contained in:
bymyself
2026-04-10 00:14:53 -07:00
parent e87c4866f5
commit 47ab354492
2 changed files with 0 additions and 22 deletions

View File

@@ -51,22 +51,10 @@ export function usePromotedPreviews(
)
const reactiveOutputs = nodeOutputStore.nodeOutputs[locatorId]
const reactivePreviews = nodeOutputStore.nodePreviewImages[locatorId]
console.warn('[PROMOTED-PREVIEW]', {
locatorId,
hasOutputs: !!reactiveOutputs?.images?.length,
hasPreviews: !!reactivePreviews?.length,
entry
})
if (!reactiveOutputs?.images?.length && !reactivePreviews?.length)
continue
const urls = nodeOutputStore.getNodeImageUrls(interiorNode)
console.warn(
'[PROMOTED-PREVIEW] urls:',
urls?.length,
'type:',
interiorNode.previewMediaType
)
if (!urls?.length) continue
const type =

View File

@@ -103,16 +103,6 @@ export const useImageUploadWidget = () => {
// Add our own callback to the combo widget to render an image when it changes
fileComboWidget.callback = function () {
console.warn(
'[IMAGEUPLOAD-CB] value:',
fileComboWidget.value,
'graphId:',
node.graph?.id,
'nodeId:',
node.id,
'inSubgraph:',
node.graph !== node.graph?.rootGraph
)
node.imgs = undefined
nodeOutputStore.setNodeOutputs(node, String(fileComboWidget.value), {
isAnimated