Fix undefined error (#17692)

This commit is contained in:
Geido 2021-12-08 22:30:41 +02:00 committed by GitHub
parent 46cdc77ae6
commit aad2abe7f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 ? (