diff --git a/src/archiefbeheercomponent/js/components/destruction-list-create/destruction-form.js b/src/archiefbeheercomponent/js/components/destruction-list-create/destruction-form.js index e278dde1..abc42fbf 100644 --- a/src/archiefbeheercomponent/js/components/destruction-list-create/destruction-form.js +++ b/src/archiefbeheercomponent/js/components/destruction-list-create/destruction-form.js @@ -18,7 +18,6 @@ function getSearchZakenUrl(path, filters, currentDate) { }; if (filters.zaaktypen.length) queryParams['zaaktype__in'] = filters.zaaktypen; if (filters.bronorganisaties.length) queryParams['bronorganisatie__in'] = filters.bronorganisaties; - if (filters.startdatum) queryParams['startdatum__gte'] = filters.startdatum; const urlSearchParams = new URLSearchParams(queryParams); @@ -33,11 +32,9 @@ const DestructionForm = ({ zaaktypen, reviewers, zakenUrl, url, currentDate, csr //filters const [selectedZaaktypen, setSelectedZaaktypen] = useState([]); - const [selectedStartdatum, setSelectedStartdatum] = useState(null); const [selectedBronorganisatie, setSelectedBronorganisatie] = useState([]); const filters = { zaaktypen: selectedZaaktypen, - startdatum: selectedStartdatum, bronorganisaties: selectedBronorganisatie, }; @@ -85,7 +82,7 @@ const DestructionForm = ({ zaaktypen, reviewers, zakenUrl, url, currentDate, csr setError(error); } ); - }, [selectedZaaktypen, selectedStartdatum, selectedBronorganisatie]); + }, [selectedZaaktypen, selectedBronorganisatie]); const bronorganisatieCheckboxes = bronorganisaties.map((bronorganisatie, index) => { return ( @@ -140,21 +137,6 @@ const DestructionForm = ({ zaaktypen, reviewers, zakenUrl, url, currentDate, csr {bronorganisatieCheckboxes} -