Skip to content

Commit 4202264

Browse files
committed
getAll forms: removeInnsendingFromForm since not all forms have properties.submissionTypes yet
1 parent ee5d807 commit 4202264

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[];
14+
return (response.data as Form[]).map((f) => removeInnsendingFromForm(f));
1515
};
1616

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

0 commit comments

Comments
 (0)