From b26e338b0bb82b6b1ead8d8a81231648adfe7ac2 Mon Sep 17 00:00:00 2001 From: Anirban Kar Date: Fri, 6 Dec 2024 23:23:17 +0530 Subject: [PATCH] fix bundling --- app/components/chat/Artifact.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/components/chat/Artifact.tsx b/app/components/chat/Artifact.tsx index c53d15b..4c3b18b 100644 --- a/app/components/chat/Artifact.tsx +++ b/app/components/chat/Artifact.tsx @@ -51,7 +51,9 @@ export const Artifact = memo(({ messageId }: ArtifactProps) => { if (actions.length !== 0 && artifact.type === 'bundled') { const finished = !actions.find((action) => action.status !== 'complete'); - setAllActionFinished(finished); + if(allActionFinished!==finished){ + setAllActionFinished(finished); + } } }, [actions]);