fix little errors in draft-for-curated-set flow. other cleanup
This commit is contained in:
parent
5f0b7fd9a7
commit
24b3b10bfb
11 changed files with 45 additions and 38 deletions
|
@ -69,7 +69,7 @@ export const Workbench = ({ design, Design, set = false, DynamicDocs = false })
|
|||
}
|
||||
|
||||
// Generate the pattern here so we can pass it down to both the view and the options menu
|
||||
const pattern = draftViews.includes(view) ? new Design(settings) : false
|
||||
const pattern = settings.measurements && draftViews.includes(view) ? new Design(settings) : false
|
||||
|
||||
// Return early if the pattern is not initialized yet
|
||||
if (typeof pattern.getConfig !== 'function') return null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue