Commit f7fd2cbc authored by Alexander Philipp Nowosad's avatar Alexander Philipp Nowosad
Browse files

Fix recognize multiple elements as filled out

parent d4481fde
......@@ -242,7 +242,10 @@ export class RunningMethod implements RunningMethodInfo, DatabaseModelPart {
return true;
}
if (this.outputArtifacts != null) {
return this.outputArtifacts.length === outputArtifacts.length;
return (
this.outputArtifacts.length ===
outputArtifacts.reduce((acc, summay) => acc + summay.elements.length, 0)
);
}
return false;
}
......@@ -261,7 +264,7 @@ export class RunningMethod implements RunningMethodInfo, DatabaseModelPart {
*
* @param commentId the id of the comment
*/
getComment(commentId: string) {
getComment(commentId: string): Comment {
return this.comments.find((comment) => comment.id === commentId);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment