mirror of
https://github.com/stackblitz/bolt.new
synced 2025-02-06 04:48:04 +00:00
fix: artifact loop fix
This commit is contained in:
parent
f4d2f73d8c
commit
ebfa4e26a6
@ -51,8 +51,11 @@ export const Artifact = memo(({ messageId }: ArtifactProps) => {
|
||||
|
||||
if (actions.length !== 0 && artifact.type === 'bundled') {
|
||||
const finished = !actions.find((action) => action.status !== 'complete');
|
||||
|
||||
if (finished != allActionFinished) {
|
||||
setAllActionFinished(finished);
|
||||
}
|
||||
}
|
||||
}, [actions]);
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user