diff --git a/src/view/Components/Taskview/Dailiesview/DailyItem.tsx b/src/view/Components/Taskview/Dailiesview/DailyItem.tsx index 4443cd3..6b173b6 100644 --- a/src/view/Components/Taskview/Dailiesview/DailyItem.tsx +++ b/src/view/Components/Taskview/Dailiesview/DailyItem.tsx @@ -4,7 +4,11 @@ import renderMarkdown from "../markdownRender"; function DailyItem(props: any) { var text_html = renderMarkdown(props.daily_text); - var note_html = renderMarkdown(props.daily_notes); + + if (props.daily_notes) { + var note_html = renderMarkdown(props.daily_notes); + } + return (
diff --git a/src/view/Components/Taskview/Habitsview/HabitItem.tsx b/src/view/Components/Taskview/Habitsview/HabitItem.tsx index 37d672c..657e844 100644 --- a/src/view/Components/Taskview/Habitsview/HabitItem.tsx +++ b/src/view/Components/Taskview/Habitsview/HabitItem.tsx @@ -3,7 +3,12 @@ import renderMarkdown from "../markdownRender"; function HabitItem(props: any) { let habit_text = renderMarkdown(props.habit_text); - let habit_notes = renderMarkdown(props.habit_notes); + let habit_notes = ""; + + if (props.habit_notes) { + habit_notes = renderMarkdown(props.habit_notes); + } + return (
diff --git a/src/view/Components/Taskview/Rewardview/RewardItem.tsx b/src/view/Components/Taskview/Rewardview/RewardItem.tsx index 5f331e2..42896eb 100644 --- a/src/view/Components/Taskview/Rewardview/RewardItem.tsx +++ b/src/view/Components/Taskview/Rewardview/RewardItem.tsx @@ -3,7 +3,12 @@ import renderMarkdown from "../markdownRender"; function RewardItem(props: any) { let reward_text = renderMarkdown(props.reward_text); - let reward_notes = renderMarkdown(props.reward_notes); + let reward_notes = ""; + + if (props.reward_notes) { + reward_notes = renderMarkdown(props.reward_notes); + } + return (
diff --git a/src/view/Components/Taskview/Todoview/TodoItem.tsx b/src/view/Components/Taskview/Todoview/TodoItem.tsx index 7c1653b..4344383 100644 --- a/src/view/Components/Taskview/Todoview/TodoItem.tsx +++ b/src/view/Components/Taskview/Todoview/TodoItem.tsx @@ -6,7 +6,12 @@ import moment from "moment"; function TodoItem(props: any) { var dueDate = (props.dueDate==null)?"":("Due Date:"+(moment(props.dueDate).format(props.dueDateFormat))); var text_html = renderMarkdown(props.todo_text); - var note_html = renderMarkdown(props.todo_notes); + var note_html = ""; + + if (props.todo_notes) { + renderMarkdown(props.todo_notes); + } + return (