We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 94ee2e7 + 622499d commit d6d1fe8Copy full SHA for d6d1fe8
projects/metis/src/app/_models/workflow-execution.ts
@@ -214,6 +214,9 @@ export function getCurrentPlugin(workflow: WorkflowExecution): PluginExecution {
214
export function executionsIncludeDeleted(pluginExecutions: Array<PluginExecution>): boolean {
215
return !!pluginExecutions.find((pe: PluginExecution) => {
216
const ep = pe.executionProgress;
217
- return typeof ep!.deletedRecords !== 'undefined' && ep!.deletedRecords > 0;
+ if (ep) {
218
+ return typeof ep.deletedRecords !== 'undefined' && ep.deletedRecords > 0;
219
+ }
220
+ return false;
221
});
222
}
0 commit comments