prasi-bun/app/srv/ws/sync/actions/page_redo.ts

14 lines
265 B
TypeScript

import { docs } from "../entity/docs";
import { ActionCtx } from "../type";
export const page_redo = async function (this: ActionCtx, id: string) {
if (!docs.page[id]) {
return;
}
const um = docs.page[id].um;
if (um.canRedo()) {
um.redo();
}
};