Handle undefined case (#98728)

This commit is contained in:
Kerry Gallagher 2021-04-30 12:51:20 +01:00 committed by GitHub
parent 5793719b13
commit f5581240bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@ export const isJobConfigurationOutdated = <JobType extends string>(
}
const jobConfiguration = jobSummary.fullJob.custom_settings.logs_source_config;
const datafeedRuntimeMappings = jobSummary.fullJob.datafeed_config.runtime_mappings;
const datafeedRuntimeMappings = jobSummary.fullJob.datafeed_config.runtime_mappings ?? {};
return !(
jobConfiguration &&