mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Fix lint
This commit is contained in:
parent
cbcba8f08d
commit
30a95e5713
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<ds-space :class="{ read: notification.read, notification: true}" margin-bottom="x-small">
|
||||
<ds-space :class="{ read: notification.read, notification: true }" margin-bottom="x-small">
|
||||
<client-only>
|
||||
<ds-space margin-bottom="x-small">
|
||||
<hc-user :user="from.author" :date-time="from.createdAt" :trunc="35" />
|
||||
|
||||
@ -47,7 +47,7 @@ export default {
|
||||
})
|
||||
if (!(markAsRead && markAsRead.read === true)) return
|
||||
this.notifications = this.notifications.map(n => {
|
||||
return (n.from.id === markAsRead.from.id) ? markAsRead : n
|
||||
return n.from.id === markAsRead.from.id ? markAsRead : n
|
||||
})
|
||||
} catch (err) {
|
||||
throw new Error(err)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user