Skip to content

Various improvements to EditableTable

Loic Huder requested to merge improve-editable-table into main
  • Get rid of duplicate states in EditableTable:

    • TypeOfInputs is already in row.type
    • Rows can be found thanks to rowId so index is not needed
    • rows is a derived state of defaultValues 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

Merge request reports