Skip to content

Commit

Permalink
ensure resourcesToUse is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
thewahome committed Aug 26, 2024
1 parent 248d7f3 commit 059fc1a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const UnstyledResourceExplorer = (props: any) => {
? data[version].children
: [];
const [searchText, setSearchText] = useState<string>('');
const filteredPayload = searchText ? searchResources(resourcesToUse, searchText) : resourcesToUse;
const filteredPayload = searchText ? searchResources(resourcesToUse!, searchText) : resourcesToUse!;
const navigationGroup = createResourcesList(filteredPayload, version, searchText);

const [items, setItems] = useState<INavLinkGroup[]>(navigationGroup);
Expand Down

0 comments on commit 059fc1a

Please sign in to comment.