diff --git a/src/editorAdapter.ts b/src/editorAdapter.ts index 648bda4a0..f45801ded 100644 --- a/src/editorAdapter.ts +++ b/src/editorAdapter.ts @@ -17,7 +17,7 @@ const opdsLinkToLinkData = (link: OPDSLink | undefined): LinkData => { title = undefined, type = undefined, } = link; - return { ...link, href, rel, title, type, role }; + return { href, rel, title, type, role }; }; /** Extract metadata and links from an OPDS entry for use on the diff --git a/src/interfaces.ts b/src/interfaces.ts index 0ff58f59f..a10d8c5a7 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -12,6 +12,9 @@ export interface Navigate { export interface LinkData { href: string; rel: string; + role?: string; + title?: string; + type?: string; } export interface CategoryData {