Skip to content

Commit a75f472

Browse files
Jakob Schlanstedtwerererer
authored andcommitted
fix(note_create): type casting
1 parent feb337d commit a75f472

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

apps/client/src/services/note_create.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,12 @@ async function createNote(
124124
return createNoteIntoInbox(resolvedOptions);
125125
}
126126

127-
// Only "into" | "before" | "after" reach here
128-
return createNoteWithUrl(resolvedOptions.target, resolvedOptions);
127+
// Only "into" | "before" | "after". the possibility of "inbox" was resolved
128+
// a line above
129+
return createNoteWithUrl(
130+
resolvedOptions.target as "into" | "before" | "after",
131+
resolvedOptions
132+
);
129133
}
130134

131135
async function promptForType(

0 commit comments

Comments
 (0)