fix: also check base key in promoted widget indicator lookup

The isPromotedByAny check was only looking up the key with
disambiguatingSourceNodeId, missing promotions stored without one.
Now tries both with and without the disambiguating segment so
nested subgraph promotions are detected regardless of storage shape.

Fixes #10612
This commit is contained in:
dante01yoon
2026-04-05 00:13:39 +09:00
parent 8a923a2094
commit fd9e732b7f

View File

@@ -390,17 +390,23 @@ const processedWidgets = computed((): ProcessedWidget[] => {
? { ...mergedOptions, disabled: true }
: mergedOptions
const borderStyle =
const sourceWidgetName = widget.storeName ?? widget.name
const isPromoted =
graphId &&
promotionStore.isPromotedByAny(graphId, {
(promotionStore.isPromotedByAny(graphId, {
sourceNodeId: hostNodeId,
sourceWidgetName: widget.storeName ?? widget.name,
sourceWidgetName,
disambiguatingSourceNodeId: promotionSourceNodeId
})
? 'ring ring-component-node-widget-promoted'
: mergedOptions.advanced
? 'ring ring-component-node-widget-advanced'
: undefined
}) ||
promotionStore.isPromotedByAny(graphId, {
sourceNodeId: hostNodeId,
sourceWidgetName
}))
const borderStyle = isPromoted
? 'ring ring-component-node-widget-promoted'
: mergedOptions.advanced
? 'ring ring-component-node-widget-advanced'
: undefined
const linkedUpstream: LinkedUpstreamInfo | undefined =
slotMetadata?.linked && slotMetadata.originNodeId