fix: artifact loop fix

This commit is contained in:
Anirban Kar 2024-12-07 00:23:53 +05:30
parent f4d2f73d8c
commit ebfa4e26a6

View File

@ -51,8 +51,11 @@ 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');
if (finished != allActionFinished) {
setAllActionFinished(finished); setAllActionFinished(finished);
} }
}
}, [actions]); }, [actions]);
return ( return (