From 3e462d1c8c30490ae4d5ae5dccaa72b634ffc5f2 Mon Sep 17 00:00:00 2001 From: Tim DiLauro Date: Thu, 11 Jul 2024 11:17:29 -0400 Subject: [PATCH] Fix LinkData. --- src/editorAdapter.ts | 2 +- src/interfaces.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 {