Skip to content

chore(websocket): Forgot to remove PinChange #222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 27, 2025
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