wip fix component

This commit is contained in:
Rizky 2024-01-27 14:45:07 +07:00
parent 7fd936c051
commit ffd06c73d1
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ export const diffLocal = (ws: any, msg: any) => {
}
}, 1500);
} else if (msg.mode === "comp") {
clearTimeout(eg.edit.comp[msg.id].saveTimeout);
eg.edit.comp[msg.id].saveTimeout = setTimeout(async () => {
const comp = eg.edit.comp[msg.id].doc.getMap("map").toJSON();
await db.component.update({