diff --git a/packages/nc-gui/composables/useCopy.ts b/packages/nc-gui/composables/useCopy.ts index 10307d43af..c67314a22b 100644 --- a/packages/nc-gui/composables/useCopy.ts +++ b/packages/nc-gui/composables/useCopy.ts @@ -15,9 +15,13 @@ export const useCopy = () => { const { copy: _copy, isSupported } = useClipboard() const copy = async (text: string) => { - if (isSupported.value) { - await _copy(text) - } else { + try { + if (isSupported.value) { + await _copy(text) + } else { + copyFallback(text) + } + } catch (e) { copyFallback(text) } }