better null check in hasRequiredMeasurementsMethod
This commit is contained in:
parent
129647fbdc
commit
a187892a37
1 changed files with 3 additions and 1 deletions
|
@ -32,7 +32,9 @@ const views = {
|
|||
}
|
||||
|
||||
const hasRequiredMeasurementsMethod = (design, gist) => {
|
||||
for (const m of design.config.measurements || []) {
|
||||
if (design.config.measurements?.length && !gist.measurements) return false
|
||||
|
||||
for (const m of design.config.measurements) {
|
||||
if (!gist.measurements[m]) return false
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue