Skip to content

Commit

Permalink
fix(issue 89): conditional logic handling links (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
janders4 authored Apr 19, 2024
1 parent 4fec402 commit a13aff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/polymorphic-serialiser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default class PolymorphicSerializer<
}

// Handle links
if (options?.linkers?.document) {
if (options?.linkers) {
if (options.linkers.document) {
document.links = { ...document.links, self: options.linkers.document.link(data) };
}
Expand Down

0 comments on commit a13aff9

Please sign in to comment.