diff --git a/samples/react-follow-document/src/webparts/followDocumentWebPart/components/FollowDocumentWebPart.tsx b/samples/react-follow-document/src/webparts/followDocumentWebPart/components/FollowDocumentWebPart.tsx index 43aa410fd..5dd572da3 100644 --- a/samples/react-follow-document/src/webparts/followDocumentWebPart/components/FollowDocumentWebPart.tsx +++ b/samples/react-follow-document/src/webparts/followDocumentWebPart/components/FollowDocumentWebPart.tsx @@ -429,7 +429,7 @@ export default class FollowDocumentWebPart extends React.Component 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({ ItemsSearch: items, });