Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions websocket/patch.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Change, DeletePageChange, PinChange } from "./change.ts";
import type { Change, DeletePageChange } from "./change.ts";
import { makeChanges } from "./makeChanges.ts";
import type { BaseLine, Page } from "@cosense/types/rest";
import { push, type PushError, type PushOptions } from "./push.ts";
Expand Down Expand Up @@ -73,7 +73,7 @@ export const patch = (
return prev.map((change) => {
if ("title" in change) change.title = fallbackTitle;
return change;
}) as Change[] | [DeletePageChange] | [PinChange];
}) as Change[] | [DeletePageChange];
}
const pending = update(page.lines, { ...page, attempts });
const newLines = pending instanceof Promise ? await pending : pending;
Expand Down
Loading