codacus commited on
Commit
b26e338
·
1 Parent(s): 54ad5bd

fix bundling

Browse files
Files changed (1) hide show
  1. app/components/chat/Artifact.tsx +3 -1
app/components/chat/Artifact.tsx CHANGED
@@ -51,7 +51,9 @@ 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
+ if(allActionFinished!==finished){
55
+ setAllActionFinished(finished);
56
+ }
57
  }
58
  }, [actions]);
59