Skip to content

Commit

Permalink
Fixed filter loading
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Apr 30, 2021
1 parent 614472d commit 8fdaf82
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { fi } from 'date-fns/locale';
import React from 'react';
import { useMetadataEntities } from '../../../hooks/api';

Expand All @@ -18,7 +19,7 @@ export function MetadataFilters ({ providerId, types = [], filters, children })

/*eslint-disable react-hooks/exhaustive-deps*/
React.useEffect(() => {
if (!filterData) {
if (!filters) {
loadFilters(providerId);
} else {
setFilterData(filterData);
Expand Down

0 comments on commit 8fdaf82

Please sign in to comment.