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
fix: [PROD-14393] fix dataset creation form state after reopening the dialog
Form state validation only worked correctly the first time a data source type
was opened, because the form state is reset when the Dialog is closed. This
fix adds a ref in DatasetCreationParameters to store the default values used
when building the form input fields, and calls getValues() to keep track of
the form values while the Dialog stays open (e.g. when switching back to a
previously edited data source type). When the data source type changes in the
Dialog, the react-hook-form state is reset with a combination of form values
and default values, and the form validation is thus correctly managed.
Copy file name to clipboardExpand all lines: src/views/DatasetManager/components/CreateDatasetButton/components/DatasetCreationParameters/DatasetCreationParameters.js
0 commit comments