From 321296bfb6a6326b3abe0cdeacf8442811abd745 Mon Sep 17 00:00:00 2001 From: janders4 Date: Fri, 19 Apr 2024 09:35:21 +0100 Subject: [PATCH] fix(issue 89): conditional logic handling links --- src/classes/polymorphic-serialiser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/polymorphic-serialiser.ts b/src/classes/polymorphic-serialiser.ts index bfa7d20..050539a 100644 --- a/src/classes/polymorphic-serialiser.ts +++ b/src/classes/polymorphic-serialiser.ts @@ -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) }; }