fix: omit show me in entry history
Signed-off-by: Innei <i@innei.in>
This commit is contained in:
parent
a4097525c8
commit
409306b77c
|
|
@ -20,13 +20,13 @@ export const EntryReadHistory: Component<{ entryId: string }> = ({
|
|||
const entryHistory = useEntryReadHistory(entryId)
|
||||
|
||||
if (!entryHistory) return null
|
||||
|
||||
if (!me) return null
|
||||
if (!entryHistory.userIds) return null
|
||||
|
||||
return (
|
||||
<div className="flex items-center">
|
||||
{[me.id]
|
||||
.concat(entryHistory.userIds?.filter((id) => id !== me?.id) ?? []) // then others
|
||||
{entryHistory.userIds
|
||||
.filter((id) => id !== me?.id)
|
||||
.slice(0, 10)
|
||||
|
||||
.map((userId, i) => (
|
||||
|
|
|
|||
Loading…
Reference in New Issue