1
0
Fork 0

simplify gist methods. set gist now sets the gist

This commit is contained in:
Enoch Riese 2022-06-24 12:59:08 -05:00
parent 94d59d44a2
commit 210c463a38
4 changed files with 9 additions and 19 deletions

View file

@ -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) => {