Skip to content

Commit ee363ac

Browse files
author
Jakob Schlanstedt
committed
fix(createNoteFromAction): don't overwrite promptForType but use the variable instead
1 parent ac8a752 commit ee363ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/client/src/services/note_create.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ async function createNoteFromAction(
158158
target: "default",
159159
title: title,
160160
activate: true,
161-
promptForType: promptForType,
161+
promptForType,
162162
}
163163
);
164164
return resp;
@@ -169,7 +169,7 @@ async function createNoteFromAction(
169169
target: "default",
170170
title,
171171
activate: false,
172-
promptForType: promptForType,
172+
promptForType,
173173
}
174174
);
175175
return resp;
@@ -186,7 +186,7 @@ async function createNoteFromAction(
186186
parentNoteLink,
187187
title,
188188
activate: true,
189-
promptForType: true,
189+
promptForType,
190190
},
191191
);
192192
return resp
@@ -202,7 +202,7 @@ async function createNoteFromAction(
202202
parentNoteLink: parentNoteLink,
203203
title,
204204
activate: false,
205-
promptForType: promptForType,
205+
promptForType,
206206
},
207207
)
208208
return resp;

0 commit comments

Comments
 (0)