Browse Source

Merge pull request #7802 from nocodb/nc-fix/error-boundary-handle-undefined_error

fix: handle if error is undefined/null in ErrorBoundary component
pull/7803/head
Anbarasu 10 months ago committed by GitHub
parent
commit
252436afc2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/nc-gui/components/nc/ErrorBoundary.vue

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

@ -66,7 +66,7 @@ export default {
<template>
<slot :key="key"></slot>
<slot name="error">
<NcModal v-model:visible="errModal" :class="{ active: errModal }" :centered="true" :closable="false" :footer="null">
<NcModal v-if="error" v-model:visible="errModal" :class="{ active: errModal }" :centered="true" :closable="false" :footer="null">
<div class="w-full flex flex-col gap-1">
<h2 class="text-xl font-semibold">Oops! Something unexpected happened :/</h2>

Loading…
Cancel
Save