diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index bd9191a..ed8e770 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -4443,7 +4443,7 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "todo" -version = "0.2.0" +version = "0.3.0" dependencies = [ "chrono", "dotenv", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 1d7c870..130e1c1 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "todo" -version = "0.2.0" -description = "A Tauri App" +version = "0.3.0" +description = "todo" authors = ["you"] license = "" repository = "" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 0c4e3de..7db4045 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "todo", - "version": "0.2.0" + "version": "0.3.0" }, "tauri": { "systemTray": { diff --git a/src/components/elements/Input/taskRegister.ts b/src/components/elements/Input/taskRegister.ts index 0896843..b8e5991 100644 --- a/src/components/elements/Input/taskRegister.ts +++ b/src/components/elements/Input/taskRegister.ts @@ -7,14 +7,14 @@ import { InputState } from "./InputState"; export const taskRegister = async (task:InputState) => { //const date = task.limit_date?.format("YYYY/MM/DD") ?? null; //const time = task.limit_time?.format("HH:mm") ?? null; - const text = task.text === null ? "" : task.text; + const text = task.text == null ? "" : task.text; const res: Model = await taskCommand.create( task.title, text, - null, - (task.limit_date)?.toString() ?? null, - (task.limit_time)?.toString() ?? null, + undefined, + (task.limit_date)?.toString() ?? undefined, + (task.limit_time)?.toString() ?? undefined, ); return res; } \ No newline at end of file