1
0
Fork 0

don't pollute layout scope

This commit is contained in:
Enoch Riese 2022-10-29 00:34:42 -05:00
parent 2e2cbf70d2
commit 4b0ccda70f

View file

@ -115,9 +115,9 @@ const WorkbenchWrapper = ({ app, design, preload = false, from = false, layout =
if (['draft', 'logs', 'test', 'printingLayout'].indexOf(gist._state?.view) !== -1) {
gist.embed = true
// get the appropriate layout for the view
gist.layout = gist.layouts?.[gist._state.view] || gist.layout || true
const layout = gist.layouts?.[gist._state.view] || gist.layout || true
// hand it separately to the design
draft = new design(gist)
draft = new design({ ...gist, layout })
console.log({ draft, design })
//draft.__init()