From 5e67c02b612de700537d2eab974a525b8c05703f Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Fri, 8 Nov 2024 11:09:31 -0500 Subject: [PATCH] 880 subject fix --- src/stores/profile.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/stores/profile.js b/src/stores/profile.js index 5a0c3825..6d78830f 100644 --- a/src/stores/profile.js +++ b/src/stores/profile.js @@ -4012,7 +4012,10 @@ export const useProfileStore = defineStore('profile', { nonLatin: this.returnLatinLabelForPt(ptFound) } } - nonLatinMap[ptFound['@guid']].scripts.push(nl.node['@language'].split("-")[1]) + if (nl && nl.node && nl.node['@language']){ + nonLatinMap[ptFound['@guid']].scripts.push(nl.node['@language'].split("-")[1]) + } + } // unique array