Reproduce:
- Open process definition runtime view in Cockpit
Expected:
- No errors in console
Observed:
TypeError: $scope.jobDefinitionsForElement.filter is not a function at Scope.$scope.isSuspended (jobDefinitionSuspensionOverlay.js:29)
Hint:
- only happens, if the job-definition query takes a long time
- the reason is, that jobDefinitionsForElement is accessed before it is available in the scope
- to reproduce, artifically delay submit of job-definition query in jobDefinition/app/data/processDefinition/jobDefinitionData.js#L11