mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
fix: remove debug console.warn statements from preview hot paths
This commit is contained in:
@@ -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 =
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user