correct filter of files.

This commit is contained in:
André Lage 2021-11-26 10:48:11 +01:00
parent f82e2ad740
commit 8abe025f98
1 changed files with 1 additions and 1 deletions

View File

@ -429,7 +429,7 @@ export default class FollowDocumentWebPart extends React.Component<IFollowDocume
ItemsSearch: this.state.Items, ItemsSearch: this.state.Items,
}); });
} else { } else {
const items = this.state.Items.filter(item => item.WebUrl.toLowerCase().indexOf(selectedOption.key.toString().toLowerCase()) > -1); const items = this.state.Items.filter(item => item.WebUrl.toLowerCase() === selectedOption.key.toString().toLowerCase());
this.setState({ this.setState({
ItemsSearch: items, ItemsSearch: items,
}); });