1
0
Fork 0

fix little errors in draft-for-curated-set flow. other cleanup

This commit is contained in:
Enoch Riese 2023-05-24 08:37:29 -05:00
parent 5f0b7fd9a7
commit 24b3b10bfb
11 changed files with 45 additions and 38 deletions

View file

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