Skip to content

Commit 622499d

Browse files
authored
Merge pull request #847 from europeana/feat/MET-5993-Metis-Logs-Error
Feat/met 5993 metis logs error
2 parents b4e9fd3 + 6209531 commit 622499d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

projects/metis/src/app/_models/workflow-execution.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ export function getCurrentPlugin(workflow: WorkflowExecution): PluginExecution {
214214
export function executionsIncludeDeleted(pluginExecutions: Array<PluginExecution>): boolean {
215215
return !!pluginExecutions.find((pe: PluginExecution) => {
216216
const ep = pe.executionProgress;
217-
if(!ep){
218-
return false;
217+
if (ep) {
218+
return typeof ep.deletedRecords !== 'undefined' && ep.deletedRecords > 0;
219219
}
220-
return typeof ep!.deletedRecords !== 'undefined' && ep!.deletedRecords > 0;
220+
return false;
221221
});
222222
}

0 commit comments

Comments
 (0)