diff --git a/src/js/components/Search/MakeQueryOption.tsx b/src/js/components/Search/MakeQueryOption.tsx index a1781130..61177271 100644 --- a/src/js/components/Search/MakeQueryOption.tsx +++ b/src/js/components/Search/MakeQueryOption.tsx @@ -18,7 +18,7 @@ const MakeQueryOption = ({ queryField }: MakeQueryOptionProps) => { const { title, id, description, config, options } = queryField; - const maxQueryParameters = useAppSelector((state) => state.config.maxQueryParameters); + const { maxQueryParameters } = useAppSelector((state) => state.config); const { queryParamCount, queryParams } = useAppSelector((state) => state.query); const isChecked = id in queryParams;