diff --git a/src/components/ObjectHttpFeilHandtering.tsx b/src/components/ObjectHttpFeilHandtering.tsx index 7f7635a5b..47131ed6c 100644 --- a/src/components/ObjectHttpFeilHandtering.tsx +++ b/src/components/ObjectHttpFeilHandtering.tsx @@ -20,7 +20,7 @@ export function ObjectHttpFeilHandtering({ url, fnr, onError, children, ...rest useEffect(() => { let objectUrl = ''; - fetch(url, postConfig(fnr)) + fetch(url, postConfig({ fnr })) .then((res) => { if (!res.ok) { setError(true);