From d8fa653cd1479bd86eae30c25378da465b675506 Mon Sep 17 00:00:00 2001 From: dromse Date: Tue, 13 Aug 2024 19:41:39 +0300 Subject: [PATCH] save task only when task body exists --- src/components/tabs/Tasks/TaskEditor/index.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/tabs/Tasks/TaskEditor/index.tsx b/src/components/tabs/Tasks/TaskEditor/index.tsx index 072d55a..7e3c91a 100644 --- a/src/components/tabs/Tasks/TaskEditor/index.tsx +++ b/src/components/tabs/Tasks/TaskEditor/index.tsx @@ -1,4 +1,5 @@ import { Task } from "@hooks/useTasks/types"; +import { Notice } from "obsidian"; import React from "react"; import { Dialog, DialogProps } from "../Dialog"; import BindEditor from "./BindEditor"; @@ -28,6 +29,11 @@ export const TaskEditor = (props: TaskEditorProps): React.JSX.Element => {