refactor: use instance computedRef (#3437)
This commit is contained in:
parent
36a1e9c092
commit
d0defb4148
1 changed files with 3 additions and 3 deletions
|
|
@ -12,7 +12,7 @@ const showUserPicker = logicAnd(
|
|||
)
|
||||
|
||||
const isGrayscale = usePreferences('grayscaleMode')
|
||||
const instance = instanceStorage.value[currentServer.value]
|
||||
const instance = computed(() => instanceStorage.value[currentServer.value])
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
@ -66,9 +66,9 @@ const instance = instanceStorage.value[currentServer.value]
|
|||
<SearchWidget mt-4 mx-1 hidden xl:block />
|
||||
|
||||
<!-- server info -->
|
||||
<div v-if="!currentUser" grid gap-3 m3>
|
||||
<div v-if="!currentUser && instance" grid gap-3 m3>
|
||||
<span text-size-lg text-primary font-bold>{{ instance.title }}</span>
|
||||
<img rounded-3 :src="instance.thumbnail.url">
|
||||
<img rounded-3 :src="instance.thumbnail?.url">
|
||||
<p text-secondary>
|
||||
{{ instance.description }}
|
||||
</p>
|
||||
|
|
|
|||
Loading…
Reference in a new issue