deepscan fixes
This commit is contained in:
parent
a1b80dd263
commit
0aef9b5ace
3 changed files with 2 additions and 6 deletions
|
@ -1,7 +1,3 @@
|
|||
import { useState } from 'react'
|
||||
import Robot from 'shared/components/robot/index.js'
|
||||
import Popout from 'shared/components/popout.js'
|
||||
import { useTranslation } from 'next-i18next'
|
||||
import DefaultErrorView from 'shared/components/error/view';
|
||||
|
||||
const Error = ({ draft, patternProps, error, updateGist }) => {
|
||||
|
|
|
@ -37,7 +37,7 @@ const hasRequiredMeasurementsMethod = (design, gist) => {
|
|||
if (design.config.measurements.length && !gist.measurements) return false
|
||||
|
||||
for (const m of design.config.measurements || []) {
|
||||
if (!gist?.measurements?.[m]) return false
|
||||
if (!gist.measurements.[m]) return false
|
||||
}
|
||||
|
||||
return true
|
||||
|
|
|
@ -3,7 +3,7 @@ import set from 'lodash.set'
|
|||
import unset from 'lodash.unset'
|
||||
import cloneDeep from 'lodash.clonedeep'
|
||||
import defaultSettings from 'shared/components/workbench/default-settings.js'
|
||||
import {useState, useEffect} from 'react'
|
||||
import {useState} from 'react'
|
||||
|
||||
// Generates a default design gist to start from
|
||||
export const defaultGist = (design, locale='en') => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue