five-on-it / apps/client/src/ui/admin-settings / settingsBodyOf
Function: settingsBodyOf()
settingsBodyOf(
form,view):Record<string,unknown>
Defined in: apps/client/src/ui/admin-settings.ts:295
The body the form sends: each number that differs from what holds (as a number; a text that is none as it is, for the API to refuse), null for a field emptied that an admin had set (its default again), the choices when they changed, the default when it changed, and the note when there is any change. Empty when nothing changed.
Parameters
form
view
Returns
Record<string, unknown>