mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 00:48:04 +08:00
feat: Unify sandbox detection and apply Agent icon override
This commit is contained in:
@ -69,11 +69,8 @@ const BaseNode: FC<BaseNodeProps> = ({
|
||||
const { t } = useTranslation()
|
||||
const nodeRef = useRef<HTMLDivElement>(null)
|
||||
const { nodesReadOnly } = useNodesReadOnly()
|
||||
const { _subGraphEntry, _iconTypeOverride } = data as {
|
||||
_subGraphEntry?: boolean
|
||||
_iconTypeOverride?: BlockEnum
|
||||
}
|
||||
const iconType = _iconTypeOverride ?? data.type
|
||||
const { _subGraphEntry } = data
|
||||
const iconType = data._iconTypeOverride ?? data.type
|
||||
|
||||
const { handleNodeIterationChildSizeChange } = useNodeIterationInteractions()
|
||||
const { handleNodeLoopChildSizeChange } = useNodeLoopInteractions()
|
||||
|
||||
Reference in New Issue
Block a user