Various improvements to EditableTable
-
Get rid of duplicate states in
EditableTable
:-
TypeOfInputs
is already inrow.type
- Rows can be found thanks to
rowId
soindex
is not needed -
rows
is a derived state ofdefaultValues
and therefore does not need to be a separate React state.
-
-
Move the warning about conditions where it fits (in the
Conditions
component) -
Improve the typings by removing optional (
?
) when it is actually required
Edited by Loic Huder