Browse Source

refactor: verify projectInfo is defined or not

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/765/head
Pranav C 3 years ago
parent
commit
32b5cdaaa5
  1. 2
      packages/nc-gui/pages/projects/index.vue

2
packages/nc-gui/pages/projects/index.vue

@ -821,7 +821,7 @@ export default {
},
computed: {
connectToExternalDB() {
return this.$store.state.project.projectInfo.connectToExternalDB
return this.$store.state.project && this.$store.state.project.projectInfo && this.$store.state.project.projectInfo.connectToExternalDB
}
},
watch: {

Loading…
Cancel
Save