Skip to content

Commit dffe708

Browse files
committed
no need for function
1 parent 4202264 commit dffe708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/bygger-backend/src/services/forms/FormsService.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const createFormsService = (formsApiUrl: string): FormsService => {
1111
const search = select ? new URLSearchParams({ select }) : '';
1212
const url = `${formsUrl}?${search}`;
1313
const response = await fetchWithErrorHandling(url, { headers: createHeaders() });
14-
return (response.data as Form[]).map((f) => removeInnsendingFromForm(f));
14+
return (response.data as Form[]).map(removeInnsendingFromForm);
1515
};
1616

1717
const get = async (formPath: string): Promise<Form> => {

0 commit comments

Comments
 (0)