Skip to content

Commit d6d1fe8

Browse files
authored
Merge pull request #846 from europeana/develop
Merge develop into master
2 parents 94ee2e7 + 622499d commit d6d1fe8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,6 +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-
return typeof ep!.deletedRecords !== 'undefined' && ep!.deletedRecords > 0;
217+
if (ep) {
218+
return typeof ep.deletedRecords !== 'undefined' && ep.deletedRecords > 0;
219+
}
220+
return false;
218221
});
219222
}

0 commit comments

Comments
 (0)