Skip to content

Commit

Permalink
Merge pull request #9883 from neinteractiveliterature/show-false-resp…
Browse files Browse the repository at this point in the history
…onses-on-event-page

Show "No" values on event pages
  • Loading branch information
nbudin authored Dec 6, 2024
2 parents 47ce283 + c088372 commit 22733cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/javascript/AppRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ const commonInConventionRoutes: RouteObject[] = [
lazy: () => import('./FormAdmin'),
children: [
{ path: ':id/edit_advanced', id: NamedRoute.FormJSONEditor, lazy: () => import('./FormAdmin/FormJSONEditor') },
{ path: ':id', lazy: () => import('./FormAdmin/$id/route') },
{ index: true, id: NamedRoute.FormAdminIndex, lazy: () => import('./FormAdmin/FormAdminIndex') },
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function getSectionizedFormItems(formData: EventPageForm, formResponse: Record<s
item.identifier !== 'title' &&
item.public_description != null &&
item.public_description.trim().length > 0 &&
formResponse[item.identifier],
(formResponse[item.identifier] || formResponse[item.identifier] === false),
);
const shortFormItems: TypedFormItem[] = [];
const secretFormItems: TypedFormItem[] = [];
Expand Down

0 comments on commit 22733cb

Please sign in to comment.