Skip to content

Commit

Permalink
Fix LinkData.
Browse files Browse the repository at this point in the history
  • Loading branch information
tdilauro committed Jul 11, 2024
1 parent 5b75c1a commit 3e462d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/editorAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export interface Navigate {
export interface LinkData {
href: string;
rel: string;
role?: string;
title?: string;
type?: string;
}

export interface CategoryData {
Expand Down

0 comments on commit 3e462d1

Please sign in to comment.