From 9ed6a1b4ce7b0efd1b4e7b74c6da38c01f1c6037 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Tue, 12 Dec 2023 17:41:28 +0530 Subject: [PATCH] fix: lint error --- packages/nc-gui/composables/usePaste.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/composables/usePaste.ts b/packages/nc-gui/composables/usePaste.ts index 5987835203..eb36b95187 100644 --- a/packages/nc-gui/composables/usePaste.ts +++ b/packages/nc-gui/composables/usePaste.ts @@ -1,4 +1,4 @@ -import { useI18n, message } from '#imports' +import { message, useI18n } from '#imports' export const usePaste = () => { const { t } = useI18n() @@ -6,7 +6,7 @@ export const usePaste = () => { const paste = async (): Promise => { try { // Check if the Clipboard API is supported - if (!navigator.clipboard) throw new Error() + if (!navigator.clipboard) throw new Error(t('msg.error.pasteFromClipboardError')) // Read text from the clipboard const clipboardText = await navigator.clipboard.readText()