From b91bd1f9e811732d41a709d2595dff5dd077d7f3 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Sat, 9 Dec 2023 17:25:23 +0100 Subject: [PATCH] fix(XbelSerializer) Signed-off-by: Marcel Klehr --- src/lib/serializers/Xbel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/serializers/Xbel.ts b/src/lib/serializers/Xbel.ts index 8cfbe83acc..3589b1d567 100644 --- a/src/lib/serializers/Xbel.ts +++ b/src/lib/serializers/Xbel.ts @@ -41,13 +41,13 @@ class XbelSerializer implements Serializer { id: parseInt(node[':@']['@_id']), parentId: folder.id, url: node[':@']['@_href'], - title: node.bookmark?.[0]?.title?.[0]?.['#text'] || '', + title: '' + (node.bookmark?.[0]?.title?.[0]?.['#text'] || ''), // cast to string location: ItemLocation.SERVER, }) } else if (typeof node.folder !== 'undefined') { item = new Folder({ id: parseInt(node[':@']?.['@_id']), - title: node.folder?.[0]?.title?.[0]?.['#text'] || '', + title: '' + (node.folder?.[0]?.title?.[0]?.['#text'] || ''), // cast to string parentId: folder.id, location: ItemLocation.SERVER, })