fix: artifact loop fix
This commit is contained in:
@@ -51,7 +51,10 @@ export const Artifact = memo(({ messageId }: ArtifactProps) => {
|
|||||||
|
|
||||||
if (actions.length !== 0 && artifact.type === 'bundled') {
|
if (actions.length !== 0 && artifact.type === 'bundled') {
|
||||||
const finished = !actions.find((action) => action.status !== 'complete');
|
const finished = !actions.find((action) => action.status !== 'complete');
|
||||||
setAllActionFinished(finished);
|
|
||||||
|
if (finished != allActionFinished) {
|
||||||
|
setAllActionFinished(finished);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, [actions]);
|
}, [actions]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user