wip: Work on editor
This commit is contained in:
parent
922bd04130
commit
94b8efa4a2
31 changed files with 677 additions and 614 deletions
|
@ -34,7 +34,7 @@ export const useEditorState = (init = {}, setEphemeralState, config) => {
|
|||
if (typeof URLSearchParams !== 'undefined') {
|
||||
try {
|
||||
const data = getHashData()
|
||||
if (data.s === 'object') setState(data.s)
|
||||
if (typeof data.s === 'object') setState(data.s)
|
||||
else setState(init)
|
||||
} catch (err) {
|
||||
setState(init)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue