Skip to content

Commit 2af32b0

Browse files
authored
Merge pull request #571 from thecodacus/artifact-bugfix
fix: artifact loop fix
2 parents f4d2f73 + ebfa4e2 commit 2af32b0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/components/chat/Artifact.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ export const Artifact = memo(({ messageId }: ArtifactProps) => {
5151

5252
if (actions.length !== 0 && artifact.type === 'bundled') {
5353
const finished = !actions.find((action) => action.status !== 'complete');
54-
setAllActionFinished(finished);
54+
55+
if (finished != allActionFinished) {
56+
setAllActionFinished(finished);
57+
}
5558
}
5659
}, [actions]);
5760

0 commit comments

Comments
 (0)