Skip to content

Commit

Permalink
fix(web): check null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Jan 27, 2025
1 parent 4e0d9d0 commit 901c6f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ export default {
}
}
if (this.projects.length > 0 && this.$route.query.new_project != null) {
if ((this.projects || []).length > 0 && this.$route.query.new_project != null) {
EventBus.$emit('i-new-project', { projectType: this.$route.query.new_project });
}
},
Expand Down

0 comments on commit 901c6f3

Please sign in to comment.