mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
feat(tasks): trim task name
This commit is contained in:
parent
d0c703515b
commit
2ea85dc238
@ -9,7 +9,7 @@ interface CreateNewTasksOpts {
|
|||||||
export async function createNewTask({ parentNoteId, title }: CreateNewTasksOpts) {
|
export async function createNewTask({ parentNoteId, title }: CreateNewTasksOpts) {
|
||||||
await server.post(`tasks`, {
|
await server.post(`tasks`, {
|
||||||
parentNoteId,
|
parentNoteId,
|
||||||
title
|
title: title.trim()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user