Skip to content

Commit

Permalink
Fix undefined error (apache#17692)
Browse files Browse the repository at this point in the history
(cherry picked from commit aad2abe)
  • Loading branch information
geido authored and jinghua-qa committed Dec 9, 2021
1 parent 16c6d13 commit 8dc601c
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 8dc601c

Please sign in to comment.