Skip to content

Commit fdb7d9b

Browse files
committed
chore: added optional check
1 parent 9d5e76a commit fdb7d9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Pages/GlobalConfigurations/Authorization/APITokens/ApiTokens.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const ApiTokens = () => {
8282
const _searchTextTrimmed = _searchText.trim()
8383
const _filteredData = tokenList.filter(
8484
(_tokenData) =>
85-
_tokenData.name.indexOf(_searchTextTrimmed) >= 0 || _tokenData.token.indexOf(_searchTextTrimmed) >= 0,
85+
_tokenData.name.indexOf(_searchTextTrimmed) >= 0 || _tokenData?.token?.indexOf(_searchTextTrimmed) >= 0,
8686
)
8787
setFilteredTokenList(_filteredData)
8888
setNoResults(_filteredData.length === 0)

0 commit comments

Comments
 (0)