Skip to content

Commit

Permalink
fix: minor TypeScript error - not sure how it got onto master
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald authored and xitij2000 committed Jan 31, 2024
1 parent d6338de commit c7aef6e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/taxonomy/TaxonomyListPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,9 @@ const TaxonomyListPage = () => {
isSuccess: isOrganizationListLoaded,
} = useOrganizationListData();

const useTaxonomyListData = () => {
const taxonomyListData = useTaxonomyListDataResponse(selectedOrgFilter);
const isLoaded = useIsTaxonomyListDataLoaded(selectedOrgFilter);
return { taxonomyListData, isLoaded };
};
const { taxonomyListData, isLoaded } = useTaxonomyListData();
const canAddTaxonomy = isLoaded ? taxonomyListData.canAddTaxonomy : false;
const taxonomyListData = useTaxonomyListDataResponse(selectedOrgFilter);
const isLoaded = useIsTaxonomyListDataLoaded(selectedOrgFilter);
const canAddTaxonomy = taxonomyListData?.canAddTaxonomy ?? false;

const getOrgSelect = () => (
// Initialize organization select component
Expand Down

0 comments on commit c7aef6e

Please sign in to comment.