From 8abe025f98f42aac72d0958f764797e3d9a721f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Lage?= Date: Fri, 26 Nov 2021 10:48:11 +0100 Subject: [PATCH] correct filter of files. --- .../followDocumentWebPart/components/FollowDocumentWebPart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, });