diff --git a/src/components/project/brief/PdfViewer.vue b/src/components/project/brief/PdfViewer.vue index d509364..5f42ef5 100644 --- a/src/components/project/brief/PdfViewer.vue +++ b/src/components/project/brief/PdfViewer.vue @@ -78,7 +78,10 @@ const isOpen = ref(true); watch(isOpen, (newValue) => { router.push({ name: route.name }); }); -const isCommentsOpen = ref(route.query.comments ? true : false); +console.log(route.query); +const isCommentsOpen = ref( + route.query.hasOwnProperty("comments") ? true : false +); const currentPageIndex = ref(1); watch(isCommentsOpen, (newVal) => {