codacus commited on
Commit
2af32b0
·
unverified ·
2 Parent(s): f4d2f73 ebfa4e2

Merge pull request #571 from thecodacus/artifact-bugfix

Browse files
Files changed (1) hide show
  1. app/components/chat/Artifact.tsx +4 -1
app/components/chat/Artifact.tsx CHANGED
@@ -51,7 +51,10 @@ export const Artifact = memo(({ messageId }: ArtifactProps) => {
51
 
52
  if (actions.length !== 0 && artifact.type === 'bundled') {
53
  const finished = !actions.find((action) => action.status !== 'complete');
54
- setAllActionFinished(finished);
 
 
 
55
  }
56
  }, [actions]);
57
 
 
51
 
52
  if (actions.length !== 0 && artifact.type === 'bundled') {
53
  const finished = !actions.find((action) => action.status !== 'complete');
54
+
55
+ if (finished != allActionFinished) {
56
+ setAllActionFinished(finished);
57
+ }
58
  }
59
  }, [actions]);
60