fix: authors profile pictute all accross the SPA
This commit is contained in:
1 parent
18600ab49d
commit
500ad59458
19 files changed
+265
-16
No files matched your search
@@ -33,5 +33,5 @@ export function sameIds(left: Byline[], right: Byline[]) {
|
||||
}
|
||||
|
||||
export function toBylines(authors: Byline[]): Byline[] {
|
||||
return authors.map(({ id, name, slug }) => ({ id, name, slug }))
|
||||
return authors.map(({ id, name, slug, avatar_id }) => ({ id, name, slug, avatar_id }))
|
||||
}
|
||||
@@ -2,4 +2,5 @@ export interface Byline {
|
||||
id: number
|
||||
name: string
|
||||
slug: string
|
||||
avatar_id?: number | null
|
||||
}
|
||||
Reference in new issue
Block a user