Skip to content

Commit c7c410b

Browse files
ComputelessComputerwarp-agent
andcommitted
fmt
Co-Authored-By: Warp <agent@warp.dev>
1 parent c749e83 commit c7c410b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/journal/EditableNote.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const NonInclusiveLink = Link.extend({
55
inclusive() {
66
return false;
77
},
8-
});
8+
},);
99
import Placeholder from "@tiptap/extension-placeholder";
1010
import TaskItem from "@tiptap/extension-task-item";
1111
import TaskList from "@tiptap/extension-task-list";
@@ -104,13 +104,13 @@ export default function EditableNote({ note, placeholder = "Start writing...", }
104104
handleKeyDown: (_view, event,) => {
105105
if (event.key === "Tab") {
106106
const { $from, } = _view.state.selection;
107-
const inList = $from.node(-1)?.type.name === "listItem" || $from.node(-1)?.type.name === "taskItem";
107+
const inList = $from.node(-1,)?.type.name === "listItem" || $from.node(-1,)?.type.name === "taskItem";
108108
if (inList) {
109109
event.preventDefault();
110110
if (event.shiftKey) {
111-
editor?.commands.liftListItem("listItem") || editor?.commands.liftListItem("taskItem");
111+
editor?.commands.liftListItem("listItem",) || editor?.commands.liftListItem("taskItem",);
112112
} else {
113-
editor?.commands.sinkListItem("listItem") || editor?.commands.sinkListItem("taskItem");
113+
editor?.commands.sinkListItem("listItem",) || editor?.commands.sinkListItem("taskItem",);
114114
}
115115
return true;
116116
}

0 commit comments

Comments
 (0)