Skip to content

Commit

Permalink
Prevent invalid filter values from being saved (#215)
Browse files Browse the repository at this point in the history
By assuming that all input is invalid until the api tells us otherwise,
we can prevent the user from clicking the save button in the time between
the value being entered and the api returning.
  • Loading branch information
reesercollins authored Oct 7, 2022
1 parent 69aef0d commit 37daf44
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const useAdvancedDataTypes = (validHandler: (isValid: boolean) => void) => {
setAdvancedDataTypesState(INITIAL_ADVANCED_DATA_TYPES_STATE);
return;
}
validHandler(false);
debounce(() => {
const queryParams = rison.encode({
type: subjectAdvancedDataType,
Expand Down

0 comments on commit 37daf44

Please sign in to comment.