diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeOutput/NodeOutput.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeOutput/NodeOutput.tsx index 4fa36cbfc3..c5df24e0e6 100644 --- a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeOutput/NodeOutput.tsx +++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeOutput/NodeOutput.tsx @@ -12,8 +12,6 @@ import { NodeDataViewer } from "./components/NodeDataViewer/NodeDataViewer"; import { ContentRenderer } from "./components/ContentRenderer"; import { useNodeOutput } from "./useNodeOutput"; import { ViewMoreData } from "./components/ViewMoreData"; -import { useNodeStore } from "@/app/(platform)/build/stores/nodeStore"; -import { useShallow } from "zustand/react/shallow"; export const NodeDataRenderer = ({ nodeId }: { nodeId: string }) => { const { @@ -23,9 +21,6 @@ export const NodeDataRenderer = ({ nodeId }: { nodeId: string }) => { executionResultId, latestInputData, } = useNodeOutput(nodeId); - const accumulatedOutputData = useNodeStore( - useShallow((state) => state.getAccumulatedNodeOutputData(nodeId)), - ); if (Object.keys(latestOutputData).length === 0) { return null; @@ -81,8 +76,7 @@ export const NodeDataRenderer = ({ nodeId }: { nodeId: string }) => { {Object.entries(latestOutputData) .slice(0, 2) - .map(([key, latestValue]) => { - const allValue = accumulatedOutputData[key] || latestValue; + .map(([key, value]) => { return (
@@ -104,7 +98,7 @@ export const NodeDataRenderer = ({ nodeId }: { nodeId: string }) => { Data:
- {latestValue.map((item, index) => ( + {value.map((item, index) => (
{