Skip to content

Commit

Permalink
chore(websocket): Forgot to remove PinChange
Browse files Browse the repository at this point in the history
Fix #220
  • Loading branch information
takker99 committed Jan 27, 2025
1 parent b9d9912 commit ef726a3
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit ef726a3

Please sign in to comment.