wip ed route

This commit is contained in:
Rizky 2024-03-17 15:55:33 +07:00
parent 8a308bec82
commit fc85ef7542
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -147,6 +147,7 @@ export const reloadPage = async (
} }
if (remotePage.comps) { if (remotePage.comps) {
console.log("page comps", remotePage.comps);
for (const [id_comp, c] of Object.entries(remotePage.comps)) { for (const [id_comp, c] of Object.entries(remotePage.comps)) {
if (c && c.snapshot) { if (c && c.snapshot) {
await loadCompSnapshot(p, id_comp, c.snapshot); await loadCompSnapshot(p, id_comp, c.snapshot);
@ -177,7 +178,7 @@ export const reloadPage = async (
location.reload(); location.reload();
return; return;
} }
const res = await p.sync.yjs.sv_local( const res = await p.sync.yjs.sv_local(
"page", "page",
p.page.cur.id, p.page.cur.id,