mirror of
https://github.com/coleam00/bolt.new-any-llm
synced 2024-12-28 06:42:56 +00:00
Merge pull request #571 from thecodacus/artifact-bugfix
fix: artifact loop fix
This commit is contained in:
commit
2af32b0333
@ -51,7 +51,10 @@ export const Artifact = memo(({ messageId }: ArtifactProps) => {
|
||||
|
||||
if (actions.length !== 0 && artifact.type === 'bundled') {
|
||||
const finished = !actions.find((action) => action.status !== 'complete');
|
||||
setAllActionFinished(finished);
|
||||
|
||||
if (finished != allActionFinished) {
|
||||
setAllActionFinished(finished);
|
||||
}
|
||||
}
|
||||
}, [actions]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user