Save and load task notes
This commit is contained in:
@@ -96,6 +96,7 @@ export function importTodoFromCsv(
|
||||
const descriptionIndex = headers.indexOf("description");
|
||||
const statusIndex = headers.indexOf("status");
|
||||
const tagsIndex = headers.indexOf("tags");
|
||||
const docIndex = headers.indexOf("doc");
|
||||
|
||||
if (titleIndex === -1) {
|
||||
errors.push("CSV must have a 'Title' column");
|
||||
@@ -145,6 +146,10 @@ export function importTodoFromCsv(
|
||||
id: taskId,
|
||||
title,
|
||||
description: descriptionIndex !== -1 ? values[descriptionIndex] : "",
|
||||
doc:
|
||||
docIndex !== -1 && values[docIndex]
|
||||
? JSON.parse(values[docIndex])
|
||||
: undefined,
|
||||
statusId,
|
||||
tagIds,
|
||||
createdAt: Date.now(),
|
||||
|
||||
Reference in New Issue
Block a user