visualizer: pass full node to attachments

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-11-04 20:58:27 +01:00
parent d7a24cb4f9
commit db79a2026d
@@ -230,11 +230,12 @@ function Output(props: { dataRef: ExtensionDataRef<unknown>; node?: AppNode }) {
}
function Attachments(props: {
attachments: ReadonlyMap<string, AppNode[]>;
node: AppNode;
enabled: boolean;
depth: number;
}) {
const { attachments, enabled, depth } = props;
const { node, enabled, depth } = props;
const { attachments } = node.edges;
const classes = useStyles({ enabled, depth });
@@ -312,11 +313,7 @@ function Extension(props: { node: AppNode; depth: number }) {
{!enabled && <DisabledIcon fontSize="small" />}
</Box>
</Box>
<Attachments
attachments={node.edges.attachments}
enabled={enabled}
depth={depth}
/>
<Attachments node={node} enabled={enabled} depth={depth} />
</Box>
);
}