Merge pull request #571 from thecodacus/artifact-bugfix
Some checks failed
Docs CI/CD / build_docs (push) Has been cancelled
Mark Stale Issues and Pull Requests / stale (push) Has been cancelled

fix: artifact loop fix
This commit is contained in:
Anirban Kar 2024-12-07 00:24:44 +05:30 committed by GitHub
commit 2af32b0333
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]);