Should not display the 'switch account' or 'switch org' menu if there's only one account or org.
Should check for the currently 'selected' account or org's id after converting to a string: Org arrays have string ids, but account arrays have number ids.
EDIT: Removed prior change involving sorting selected item to first part of the array. That is easier to handle in a sort in the UI.
Checklist
Check all that apply
[x] Updated documentation to reflect changes [N/A]
[X] Added entry to top of Changelog with link to PR (not issue)
[X] Tests pass
[x] Peer reviewed and approved
[x] Signed CLA (if not already signed) [N/A - InfluxData employee)
Per UI 4047 and UI 4051, the multi-org dropdown:
id
after converting to a string: Org arrays havestring
ids, but account arrays havenumber
ids.EDIT: Removed prior change involving sorting selected item to first part of the array. That is easier to handle in a sort in the UI.
Checklist
Check all that apply