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:
parent
fd7d61b47c
commit
66cbb80a5d
1 changed files with 8 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue