From 2eec6e0c328acb1bbd94b8e8139c16887461b0d4 Mon Sep 17 00:00:00 2001 From: stigus Date: Thu, 11 Apr 2024 15:12:25 +0200 Subject: [PATCH] Fix for udistub validering av flyktning felt --- .../js/src/components/fagsystem/udistub/form/validation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dolly-frontend/src/main/js/src/components/fagsystem/udistub/form/validation.tsx b/apps/dolly-frontend/src/main/js/src/components/fagsystem/udistub/form/validation.tsx index 9c868f32eba..689165b6bcd 100644 --- a/apps/dolly-frontend/src/main/js/src/components/fagsystem/udistub/form/validation.tsx +++ b/apps/dolly-frontend/src/main/js/src/components/fagsystem/udistub/form/validation.tsx @@ -88,7 +88,7 @@ export const validation = { Yup.object({ aliaser: ifPresent('$udistub.aliaser', aliaser), arbeidsadgang: ifPresent('$udistub.arbeidsadgang', arbeidsadgang), - flyktning: requiredBoolean, + flyktning: ifPresent('$udistub.flyktning', requiredBoolean), oppholdStatus: ifPresent('$udistub.oppholdStatus', oppholdStatus), soeknadOmBeskyttelseUnderBehandling: ifPresent( '$udistub.soeknadOmBeskyttelseUnderBehandling',