simplify gist methods. set gist now sets the gist
This commit is contained in:
parent
94d59d44a2
commit
210c463a38
4 changed files with 9 additions and 19 deletions
|
@ -67,11 +67,11 @@ const WorkbenchWrapper = ({ app, design, preload=false, from=false, layout=false
|
|||
const doPreload = async () => {
|
||||
if (preload && from && preloaders[from]) {
|
||||
const g = await preloaders[from](preload, design)
|
||||
setGist({...g.settings})
|
||||
setGist({...gist, ...g.settings})
|
||||
}
|
||||
}
|
||||
doPreload();
|
||||
}, [preload, from])
|
||||
}, [preload, from, gist])
|
||||
|
||||
// Helper methods to manage the gist state
|
||||
const updateWBGist = useMemo(() => (path, value, closeNav=false) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue