Skip to content

Commit

Permalink
fixing a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelliney committed Aug 9, 2024
1 parent 3f417c6 commit 3430f51
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/pages/studyView/resources/FilesAndLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,17 @@ export class FilesAndLinks extends React.Component<IFilesLinksTable, {}> {
data: { [id: string]: string },
filterString: string,
filterStringUpper: string
) => (data[key] || '').toUpperCase().includes(filterStringUpper),
) => {
if (data[key]) {
if (!isNumber) {
return (data[key] || '')
.toUpperCase()
.includes(filterStringUpper);
}
}

return false;
},
};
}

Expand Down

0 comments on commit 3430f51

Please sign in to comment.