Browse Source

fix(nc-gui): remove change related to error boundary

nc-cal/corrections
DarkPhoenix2704 9 months ago
parent
commit
50e5c6ef0e
  1. 8
      packages/nc-gui/components/nc/ErrorBoundary.vue

8
packages/nc-gui/components/nc/ErrorBoundary.vue

@ -29,7 +29,7 @@ export default {
const copyError = async () => { const copyError = async () => {
try { try {
if (error.value) await copy(`message: ${error.value?.message}\n\n${error.value?.stack}`) if (error.value) await copy(`message: ${error.value.message}\n\n${error.value.stack}`)
message.info('Error message copied to clipboard.') message.info('Error message copied to clipboard.')
} catch (e) { } catch (e) {
message.error('Something went wrong while copying to clipboard, please copy from browser console.') message.error('Something went wrong while copying to clipboard, please copy from browser console.')
@ -95,9 +95,9 @@ export default {
> >
<div class="nc-left-vertical-bar"></div> <div class="nc-left-vertical-bar"></div>
<div class="nc-error-content"> <div class="nc-error-content">
<span class="font-weight-bold">Message: {{ error?.message }}</span> <span class="font-weight-bold">Message: {{ error.message }}</span>
<br /> <br />
<div class="text-gray-500 mt-2">{{ error?.stack }}</div> <div class="text-gray-500 mt-2">{{ error.stack }}</div>
</div> </div>
</div> </div>
<div class="flex justify-end gap-2"> <div class="flex justify-end gap-2">
@ -107,7 +107,7 @@ export default {
Copy Error Copy Error
</div> </div>
</NcButton> </NcButton>
<NcButton v-if="!prevError || error?.message !== prevError?.message" size="small" @click="reload"> <NcButton v-if="!prevError || error.message !== prevError.message" size="small" @click="reload">
<div class="flex items-center gap-1"> <div class="flex items-center gap-1">
<GeneralIcon icon="reload" /> <GeneralIcon icon="reload" />
Reload Reload

Loading…
Cancel
Save