diff --git a/webapps/src/main/webapp/vue-app/taskDrawer/components/TaskDrawerComponents/TaskProject.vue b/webapps/src/main/webapp/vue-app/taskDrawer/components/TaskDrawerComponents/TaskProject.vue index 8d1f24666..db895a7b3 100644 --- a/webapps/src/main/webapp/vue-app/taskDrawer/components/TaskDrawerComponents/TaskProject.vue +++ b/webapps/src/main/webapp/vue-app/taskDrawer/components/TaskDrawerComponents/TaskProject.vue @@ -114,7 +114,7 @@ export default { created() { this.getProjects(); $(document).on('mousedown', () => { - if (this.$refs.select.isMenuActive) { + if (this.$refs.select && this.$refs.select.isMenuActive) { window.setTimeout(() => { this.$refs.select.isMenuActive = false; }, 200);