Skip to content

Commit 321296b

Browse files
committed
fix(issue 89): conditional logic handling links
1 parent 4fec402 commit 321296b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/classes/polymorphic-serialiser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default class PolymorphicSerializer<
7272
}
7373

7474
// Handle links
75-
if (options?.linkers?.document) {
75+
if (options?.linkers) {
7676
if (options.linkers.document) {
7777
document.links = { ...document.links, self: options.linkers.document.link(data) };
7878
}

0 commit comments

Comments
 (0)