Skip to content

Commit

Permalink
Handle null title on task record (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcain authored Jul 6, 2021
1 parent d1c6a37 commit 3d407a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "things-logbook",
"name": "Things Logbook",
"description": "Sync your Things.app Logbook with Daily Notes",
"version": "0.1.13",
"version": "0.1.14",
"author": "Liam Cain",
"authorUrl": "https://github.com/liamcain/",
"isDesktopOnly": true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-things-logbook-plugin",
"version": "0.1.13",
"version": "0.1.14",
"description": "Sync Things.app Logbook with Obsidian",
"author": "liamcain",
"main": "main.js",
Expand Down
4 changes: 2 additions & 2 deletions src/things.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface ITask {

export interface ITaskRecord {
uuid: string;
title: string;
title?: string;
notes: string;
area?: string;
startDate: number;
Expand Down Expand Up @@ -56,7 +56,7 @@ export function buildTasksFromSQLRecords(
} else {
tasks[id] = {
...task,
title: task.title.trimEnd(),
title: (task.title || "").trimEnd(),
subtasks: [],
tags: [tag],
};
Expand Down

0 comments on commit 3d407a1

Please sign in to comment.