0
0

fix(client): Make isTimelineAvailable a reference (#9906)

* Make `isTimelineAvailable` a reference

* Update b.vue
This commit is contained in:
Kagami Sascha Rosylight 2023-02-12 16:40:36 +01:00 committed by GitHub
parent 9f0e0dc8ce
commit 2f41f12aea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,7 +83,7 @@ const announcements = {
limit: 10, limit: 10,
}; };
const isTimelineAvailable = instance.policies.ltlAvailable || instance.policies.gtlAvailable; const isTimelineAvailable = $ref(instance.policies?.ltlAvailable || instance.policies?.gtlAvailable);
let showMenu = $ref(false); let showMenu = $ref(false);
let isDesktop = $ref(window.innerWidth >= DESKTOP_THRESHOLD); let isDesktop = $ref(window.innerWidth >= DESKTOP_THRESHOLD);