mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
feat(tasks): trim task name
This commit is contained in:
@@ -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()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user