Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getAll forms: removeInnsendingFromForm #1486

Merged
merged 2 commits into from
Mar 21, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
getAll forms: removeInnsendingFromForm since not all forms have prope…
…rties.submissionTypes yet
akgagnat committed Mar 21, 2025
commit 42022641ad2ce20d9bf406c258b9f6f6831557a6
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ const createFormsService = (formsApiUrl: string): FormsService => {
const search = select ? new URLSearchParams({ select }) : '';
const url = `${formsUrl}?${search}`;
const response = await fetchWithErrorHandling(url, { headers: createHeaders() });
return response.data as Form[];
return (response.data as Form[]).map((f) => removeInnsendingFromForm(f));
};

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