fix: display non-explicit members in Share Board modal <Select> (#3841)

* fix: display non-explicit members in share select

* Update webapp/src/components/shareBoard/shareBoard.tsx

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
This commit is contained in:
Paul Esch-Laurent 2022-09-14 13:22:07 -05:00 committed by GitHub
parent fd7d61b47c
commit 66cbb80a5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -360,7 +360,14 @@ export default function ShareBoardDialog(props: Props): JSX.Element {
value={selectedUser}
className={'userSearchInput'}
cacheOptions={true}
filterOption={(o) => !members[o.value]}
filterOption={(o) => {
// render non-explicit members
if (members[o.value]) {
return members[o.value].synthetic
}
// not a member, definitely render
return true
}}
loadOptions={async (inputValue: string) => {
const result = []
if (Utils.isFocalboardPlugin()) {