Skip to content

Commit

Permalink
Fix undefined error (apache#17692)
Browse files Browse the repository at this point in the history
  • Loading branch information
geido committed Dec 8, 2021
1 parent 46cdc77 commit aad2abe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const DefaultValue: FC<DefaultValueProps> = ({
const formFilter = (form.getFieldValue('filters') || {})[filterId];
const queriesData = formFilter?.defaultValueQueriesData;
const loading = hasDataset && queriesData === null;
const value = formFilter.defaultDataMask?.filterState.value;
const value = formFilter.defaultDataMask?.filterState?.value;
const isMissingRequiredValue =
hasDefaultValue && (value === null || value === undefined);
return loading ? (
Expand Down

0 comments on commit aad2abe

Please sign in to comment.