don't pollute layout scope
This commit is contained in:
parent
2e2cbf70d2
commit
4b0ccda70f
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue