Skip to content

Commit af8b29c

Browse files
committed
Fjerne unødvendig map
1 parent 9f4cc72 commit af8b29c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/sif-common-soknad-ds/src/utils/innsendingErrorUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const isInvalidParameterErrorResponse = (data: AxiosError<any> | any): da
1515

1616
export const getInvalidParametersFromAxiosError = (error: AxiosError<any>): InvalidParameterViolation[] => {
1717
if (isInvalidParameterErrorResponse(error.response?.data)) {
18-
return error.response?.data.violations.map((violation) => violation);
18+
return error.response?.data.violations;
1919
}
2020
return [];
2121
};

0 commit comments

Comments
 (0)