diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues/sidebar/AssigneeFacet.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/issues/sidebar/AssigneeFacet.tsx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/AssigneeFacet.tsx b/server/sonar-web/src/main/js/apps/issues/sidebar/AssigneeFacet.tsx index b4896bafea6..26d0204509e 100644 --- a/server/sonar-web/src/main/js/apps/issues/sidebar/AssigneeFacet.tsx +++ b/server/sonar-web/src/main/js/apps/issues/sidebar/AssigneeFacet.tsx @@ -38,7 +38,7 @@ export interface Props { onChange: (changes: Partial<Query>) => void; onToggle: (property: string) => void; open: boolean; - organization: { key: string } | undefined; + organization: string | undefined; stats: { [x: string]: number } | undefined; referencedUsers: { [login: string]: ReferencedUser }; } @@ -77,11 +77,7 @@ export default class AssigneeFacet extends React.PureComponent<Props> { }; handleSearch = (query: string) => { - let organization = this.props.component && this.props.component.organization; - if (this.props.organization && !organization) { - organization = this.props.organization.key; - } - return searchAssignees(query, organization); + return searchAssignees(query, this.props.organization); }; handleSelect = (option: { value: string }) => { |