From a093918dcba1155454d7a02a8e25849031c5ce37 Mon Sep 17 00:00:00 2001 From: Avris Date: Sun, 25 Oct 2020 01:37:03 +0200 Subject: [PATCH] #50 pronouns cards - fix --- routes/profileEditor.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/profileEditor.vue b/routes/profileEditor.vue index 92136fdd..f3237d4b 100644 --- a/routes/profileEditor.vue +++ b/routes/profileEditor.vue @@ -122,7 +122,7 @@ pronouns: dictToList(profile.pronouns), description: profile.description, birthday: profile.birthday, - links: profile.links, + links: Object.keys(profile.links).length ? profile.links : [], flags: dictToList(profile.flags), words: profile.words.map(x => dictToList(x)), }; @@ -139,7 +139,7 @@ pronouns: {}, description: '', birthday: profile.birthday, - links: profile.links, + links: Object.keys(profile.links).length ? profile.links : [], flags: dictToList(profile.flags), words: defaultWords, };