Skip to content

Commit

Permalink
Merge pull request #7802 from nocodb/nc-fix/error-boundary-handle-und…
Browse files Browse the repository at this point in the history
…efined_error

fix: handle if error is undefined/null in ErrorBoundary component
  • Loading branch information
DarkPhoenix2704 committed Mar 5, 2024
2 parents 7e21f8f + 766effd commit 252436a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nc-gui/components/nc/ErrorBoundary.vue
Expand Up @@ -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>

Expand Down

0 comments on commit 252436a

Please sign in to comment.