diff --git a/apps/editor/widget/app.jsx b/apps/editor/widget/app.jsx index 9dd9090..8cc21bc 100644 --- a/apps/editor/widget/app.jsx +++ b/apps/editor/widget/app.jsx @@ -79,12 +79,7 @@ function PanelHeader({ {adapters && adapters.map((it) => {it.label})} - - adapter.create({ [value]: { post: { main: editorValue } } }) - } - > + adapter.create(value)}> Publish @@ -109,7 +104,28 @@ const socialDbAdapter = { return Social.get(path, blockHeight); }, create: (v) => { - return Social.set(v, { force: true }); + const id = "routes"; + return Social.set( + { + thing: { + [id]: { + "": v, + metadata: { + type: "app", + }, + }, + }, + }, + { + force: "true", + onCommit: (v) => { + console.log(v); + }, + onCancel: (v) => { + console.log(v); + }, + } + ); }, };