fix: fix vue/no-ref-as-operand
and vue/return-in-computed-property
ESLint errors (#2679)
This commit is contained in:
parent
ed8a1811cc
commit
3b1a66c93c
9 changed files with 14 additions and 10 deletions
|
@ -21,7 +21,7 @@ const { data: status, pending, refresh: refreshStatus } = useAsyncData(
|
|||
)
|
||||
const { client } = useMasto()
|
||||
const { data: context, pending: pendingContext, refresh: refreshContext } = useAsyncData(
|
||||
`context:${id}`,
|
||||
`context:${id.value}`,
|
||||
async () => client.value.v1.statuses.$select(id.value).context.fetch(),
|
||||
{ watch: [isHydrated], immediate: isHydrated.value, lazy: true, default: () => shallowRef() },
|
||||
)
|
||||
|
|
|
@ -32,6 +32,8 @@ const filter = computed<mastodon.v1.NotificationType | undefined>(() => {
|
|||
const actualFilter = Array.isArray(rawFilter) ? rawFilter[0] : rawFilter
|
||||
if (isNotificationFilter(actualFilter))
|
||||
return actualFilter
|
||||
|
||||
return undefined
|
||||
})
|
||||
|
||||
const filterIconMap: Record<mastodon.v1.NotificationType, string> = {
|
||||
|
|
|
@ -12,6 +12,8 @@ const filter = computed<mastodon.v1.NotificationType | undefined>(() => {
|
|||
const actualFilter = Array.isArray(rawFilter) ? rawFilter[0] : rawFilter
|
||||
if (isNotification(actualFilter))
|
||||
return actualFilter
|
||||
|
||||
return undefined
|
||||
})
|
||||
|
||||
useHydratedHead({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue