diff --git a/node/src/ts/visualizer/components/Filter.tsx b/node/src/ts/visualizer/components/Filter.tsx index 4e916b8a..0c17da6f 100644 --- a/node/src/ts/visualizer/components/Filter.tsx +++ b/node/src/ts/visualizer/components/Filter.tsx @@ -16,11 +16,11 @@ const Filter: React.FC = () => { const query = useQuery() const defaultEntitiesLimit = useMemo(() => { - const limit = Number(query.get('lower_limit')) + const limit = Number(query.get('lower_limit')) || 1 if (Number.isInteger(limit)) { return limit } - return 0 + return 1 }, []) const handleClick = useCallback(() => { diff --git a/node/src/ts/visualizer/index.tsx b/node/src/ts/visualizer/index.tsx index 9767a210..872dbcff 100644 --- a/node/src/ts/visualizer/index.tsx +++ b/node/src/ts/visualizer/index.tsx @@ -171,7 +171,7 @@ const App: React.FC = (props) => { return } - if (lowerLimitOfClassEntities === 0) { + if (lowerLimitOfClassEntities <= 1) { history.push({ pathname: history.location.pathname, }) diff --git a/node/src/ts/visualizer/reducers/filter.ts b/node/src/ts/visualizer/reducers/filter.ts index 36449aa9..76f00228 100644 --- a/node/src/ts/visualizer/reducers/filter.ts +++ b/node/src/ts/visualizer/reducers/filter.ts @@ -7,7 +7,7 @@ export interface FilterState { } const initialState: FilterState = { - lowerLimitOfClassEntities: 0, + lowerLimitOfClassEntities: 1, showingConditions: false, }