-
Notifications
You must be signed in to change notification settings - Fork 177
Closed
Labels
DevOps:649460Linked to internal DevOps issue #649460Linked to internal DevOps issue #649460bugSomething isn't workingSomething isn't working
Description
Is this a regression?
Yes
Severity
⚪ Cosmetic – visual or non-functional issue
Please provide the branch(es) you discovered this issue in
v92
Environment Details
OneIM 9.2.x, web portal including 811c6ac
Please provide a minimal set of steps to reproduce the issue
- Have an identity create a request
- Login as an approver for the same request
- Create an inquiry via View Request Details | Send inquiry
- Login as the recipient of the inquiry and try to answer
Description
Repro causes error, but the inquiry is answered correctly. The error message may be confusing for portal users.
Describe what you expected to happen versus what actually happened
I would expect no error message.
Relevant logs or console output
2025-11-10T09:02:48.148Z ERROR [main.js:2471] Error: Uncaught (in promise): TypeError: Reduce of empty array with no initial value
TypeError: Reduce of empty array with no initial value
at Array.reduce (<anonymous>)
at getWorkflowDataWithSmallestSublevel (decision-step.service.ts:114:6)
at DecisionStepSevice.getStep (decision-step.service.ts:72:22)
at DecisionStepSevice.getCurrentStepCdr (decision-step.service.ts:41:23)
at workflow-single-acti…component.ts:151:44
at Generator.next (<anonymous>)
at getWorkflowDataWithSmallestSublevel (decision-step.service.ts:114:6)
at DecisionStepSevice.getStep (decision-step.service.ts:72:22)
at DecisionStepSevice.getCurrentStepCdr (decision-step.service.ts:41:23)
at workflow-single-acti…component.ts:151:44
at Generator.next (<anonymous>)
Caller: GlobalErrorHandler
_logModern @ ngx-logger.js:484Add a screenshot(s) if that helps illustrate the problem
No response
Suggested Fix
In decision-step.service.ts replace
(data?.Columns?.Decision?.Value ?? '') === '' &&
with
((data?.Columns?.Decision?.Value ?? '') === '' || (data?.Columns?.Decision?.Value ?? '') === 'Q') &&
Anything else?
The same code line is present in 9.3.1 latest commit. I haven't attempted the repro in 9.3.1 but I suspect the error can be reproduced there, too.
Before submitting...
- I have searched for existing issues that match this one on github and on the community support page
- I have included all necessary details to reproduce this issue
Metadata
Metadata
Assignees
Labels
DevOps:649460Linked to internal DevOps issue #649460Linked to internal DevOps issue #649460bugSomething isn't workingSomething isn't working