Browse Source

fix: handle if error is undefined/null

pull/7802/head
Pranav C 8 months ago
parent
commit
766effdb56
  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