Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OBPIH-5802 Fetch users based on role in fulfilling location #4287

Conversation

drodzewicz
Copy link
Collaborator

@drodzewicz drodzewicz commented Sep 19, 2023

Forgot to add the location parameter on the frontend when fetching approvers based on location roles.

Additionally fixed the multi-select tooltip, which was showing up because it's value is an Array instead of simple [].
When casting an Array(0) to a boolean it returns true unlike casting a [] which returns false

Additionally fixed the multi-select tooltip, which was showing up because it's value is an array which is a truthy even when it is empty.

Copy link
Collaborator

@kchelstowski kchelstowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unlike casting a [] which returns false

[] is truthy in JS, so is it a typo or I don't understand something?

@drodzewicz
Copy link
Collaborator Author

@kchelstowski disregard the previous comment I was thinking about a different thing, but yes you are right, array is a truth value.

@awalkowiak awalkowiak merged commit 98806dc into develop Sep 19, 2023
3 checks passed
@awalkowiak awalkowiak deleted the OBPIH-5802-select-approver-in-create-request-approvals-end-to-end-workflow branch September 19, 2023 11:52
awalkowiak pushed a commit that referenced this pull request Oct 26, 2023
* OBPIH-5802 Fix select tooltip showing up on empty multiselect

* OBPIH-5802 Fetch user list of approvers based on desnation location
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants