mirror of
https://github.com/stackblitz/bolt.new
synced 2025-02-05 20:46:43 +00:00
fix: artifact loop fix
This commit is contained in:
parent
f4d2f73d8c
commit
ebfa4e26a6
@ -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