You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems like a side-effect of us improperly supplying the form without some initial values. We need to write a function that comes up with proper initial values for inputs
Force countries to define initial values for all inputs OR alternatively make input components export their initial values easily for our logic to use
For some inputs it might not be even possible to assign a default value. "FILE" or "DATE" for instance? Or maybe the default value is null.
If you decide to define export const initialValue = "" or similar for the input components, you can do this as addition in the component files in the components package or by creating new wrapper components in packages/client/src/v2-events for each input. We might want to add an export function toString(value: SomeType): string in the next problem
Problem number 2
This place in the code would then again need a function that returns either the values as strings or empty strings so we don't get the error.
Problem number 1
This seems like a side-effect of us improperly supplying the form without some initial values. We need to write a function that comes up with proper initial values for inputs
Ideas
export const initialValue = ""
or similar for the input components, you can do this as addition in the component files in the components package or by creating new wrapper components inpackages/client/src/v2-events
for each input. We might want to add anexport function toString(value: SomeType): string
in the next problemProblem number 2
This place in the code would then again need a function that returns either the values as strings or empty strings so we don't get the error.
The text was updated successfully, but these errors were encountered: