diff --git a/apps/etterlatte-saksbehandling-ui/client/src/components/behandling/Behandling.tsx b/apps/etterlatte-saksbehandling-ui/client/src/components/behandling/Behandling.tsx index 0eaf0b20171..7cefbbc69c6 100644 --- a/apps/etterlatte-saksbehandling-ui/client/src/components/behandling/Behandling.tsx +++ b/apps/etterlatte-saksbehandling-ui/client/src/components/behandling/Behandling.tsx @@ -38,12 +38,7 @@ export const Behandling = () => { if (behandlingIdFraURL !== behandlingFraRedux?.id) { fetchBehandling( behandlingIdFraURL, - (behandling) => { - if (behandling.hendelser) { - console.log(behandling.hendelser) - } - dispatch(setBehandling(behandling)) - }, + (behandling) => dispatch(setBehandling(behandling)), () => dispatch(resetBehandling()) ) }