From 1a7ccb04e5abca28f2750aadfa2bf4fa820b5629 Mon Sep 17 00:00:00 2001 From: naskya Date: Thu, 7 Sep 2023 02:38:42 +0900 Subject: [PATCH] fix (minor): noteId is not a number --- packages/client/src/components/MkNote.vue | 2 +- packages/client/src/components/MkNoteSub.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/components/MkNote.vue b/packages/client/src/components/MkNote.vue index c39811e92..c6bdced45 100644 --- a/packages/client/src/components/MkNote.vue +++ b/packages/client/src/components/MkNote.vue @@ -383,7 +383,7 @@ const isForeignLanguage: boolean = return postLang !== "" && postLang !== targetLang; })(); -async function translate_(noteId: number, targetLang: string) { +async function translate_(noteId, targetLang: string) { return await os.api("notes/translate", { noteId: noteId, targetLang: targetLang, diff --git a/packages/client/src/components/MkNoteSub.vue b/packages/client/src/components/MkNoteSub.vue index 566cd3dd1..93137ef02 100644 --- a/packages/client/src/components/MkNoteSub.vue +++ b/packages/client/src/components/MkNoteSub.vue @@ -304,7 +304,7 @@ const isForeignLanguage: boolean = return postLang !== "" && postLang !== targetLang; })(); -async function translate_(noteId: number, targetLang: string) { +async function translate_(noteId, targetLang: string) { return await os.api("notes/translate", { noteId: noteId, targetLang: targetLang,