Skip to content

Commit 78d6632

Browse files
committed
✨ [#726] Update frontend to filter on identificatie instead of URL
1 parent b976835 commit 78d6632

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

frontend/src/lib/api/private.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { request } from "./request";
1010
* the field 'omschrijving'.
1111
*/
1212
export async function listInformatieObjectTypeChoices(
13-
zaaktypeUrl?: string,
13+
zaaktypeIdentificatie?: string,
1414
signal?: AbortSignal,
1515
) {
1616
return cacheMemo(
@@ -20,7 +20,7 @@ export async function listInformatieObjectTypeChoices(
2020
"GET",
2121
"/_informatieobjecttype-choices/",
2222
{
23-
zaaktype: zaaktypeUrl,
23+
zaaktypeIdentificatie: zaaktypeIdentificatie,
2424
},
2525
undefined,
2626
undefined,
@@ -30,7 +30,7 @@ export async function listInformatieObjectTypeChoices(
3030

3131
return promise;
3232
},
33-
[zaaktypeUrl],
33+
[zaaktypeIdentificatie],
3434
);
3535
}
3636

@@ -39,7 +39,7 @@ export async function listInformatieObjectTypeChoices(
3939
* 'omschrijving'.
4040
*/
4141
export async function listStatusTypeChoices(
42-
zaaktypeUrl?: string,
42+
zaaktypeIdentificatie?: string,
4343
signal?: AbortSignal,
4444
) {
4545
return cacheMemo(
@@ -49,7 +49,7 @@ export async function listStatusTypeChoices(
4949
"GET",
5050
"/_statustype-choices/",
5151
{
52-
zaaktype: zaaktypeUrl,
52+
zaaktypeIdentificatie: zaaktypeIdentificatie,
5353
},
5454
undefined,
5555
undefined,
@@ -59,7 +59,7 @@ export async function listStatusTypeChoices(
5959

6060
return promise;
6161
},
62-
[zaaktypeUrl],
62+
[zaaktypeIdentificatie],
6363
);
6464
}
6565

@@ -68,7 +68,7 @@ export async function listStatusTypeChoices(
6868
* resultaattype. The label is the field 'omschrijving'.
6969
*/
7070
export async function listResultaatTypeChoices(
71-
zaaktypeUrl?: string,
71+
zaaktypeIdentificatie?: string,
7272
signal?: AbortSignal,
7373
) {
7474
return cacheMemo(
@@ -78,7 +78,7 @@ export async function listResultaatTypeChoices(
7878
"GET",
7979
"/_external-resultaattype-choices/",
8080
{
81-
zaaktype: zaaktypeUrl,
81+
zaaktypeIdentificatie: zaaktypeIdentificatie,
8282
},
8383
undefined,
8484
undefined,
@@ -88,7 +88,7 @@ export async function listResultaatTypeChoices(
8888

8989
return promise;
9090
},
91-
[zaaktypeUrl],
91+
[zaaktypeIdentificatie],
9292
);
9393
}
9494

@@ -128,7 +128,7 @@ export async function listSelectielijstKlasseChoices(
128128

129129
/**
130130
* Retrieve zaaktypen from Open Zaak and return a value and a label per zaaktype.
131-
* The label is the 'omschrijving' field, and the value is the URL. The response is cached for 15 minutes.
131+
* The label is the 'omschrijving' field, and the value is the identificatie. The response is cached for 15 minutes.
132132
* @param [params] - Additional search parameters for filtering (this keeps filters in sync with objects on page).
133133
* @param [external=false] - Fetch zaaktypen from ZRC Service (Open Zaak) (slower/can't be combined with other filtering options).
134134
* @param signal - Abort signal, should be called in cleanup function in React `useEffect()` hooks.

frontend/src/pages/settings/pages/destruction-report/DestructionReportSettingsPage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function DestructionReportSettingsPage() {
6464
[valuesState.zaaktype],
6565
);
6666
const { data: informatieObjectTypeChoices } = useDataFetcher(
67-
(signal) => listInformatieObjectTypeChoices(valuesState.zaakType, signal),
67+
(signal) => listInformatieObjectTypeChoices(valuesState.zaaktype, signal),
6868
{
6969
initialState: [],
7070
errorMessage:

0 commit comments

Comments
 (0)