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 and GITHUB_USERNAME committed Feb 7, 2023
1 parent fda3ed3 commit fd93d10
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 fd93d10

Please sign in to comment.