From b65ee1c34e75e877a72bcfbc6949417187a95a40 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 15 Mar 2023 18:46:29 +0800 Subject: [PATCH] fix(nc-gui): add type to e --- packages/nc-gui/components/smartsheet/ApiSnippet.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/smartsheet/ApiSnippet.vue b/packages/nc-gui/components/smartsheet/ApiSnippet.vue index 192af6a237..a975ef75c1 100644 --- a/packages/nc-gui/components/smartsheet/ApiSnippet.vue +++ b/packages/nc-gui/components/smartsheet/ApiSnippet.vue @@ -132,7 +132,7 @@ const onCopyToClipboard = async () => { await copy(code) // Copied to clipboard message.info(t('msg.info.copiedToClipboard')) - } catch (e) { + } catch (e: any) { message.error(e.message) } }