wip fix
This commit is contained in:
parent
967d2a2462
commit
4711bafef1
|
|
@ -201,15 +201,6 @@ export const edInitSync = (p: PG) => {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
async editor_start(e) {
|
async editor_start(e) {
|
||||||
if (p.ui.syncing) {
|
|
||||||
await reloadPage(p, params.page_id, "editor-start");
|
|
||||||
if (p.page.doc) {
|
|
||||||
p.page.doc.transact(() => {
|
|
||||||
p.page.doc?.getMap("map").set("ts", Date.now());
|
|
||||||
}, `sync`);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (params.site_id !== e.site_id || params.page_id !== e.page_id) {
|
if (params.site_id !== e.site_id || params.page_id !== e.page_id) {
|
||||||
if (!p.page.cur.id) {
|
if (!p.page.cur.id) {
|
||||||
p.site.id = e.site_id;
|
p.site.id = e.site_id;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue