From c8e51c8344676ebd2190682a11923eca2c4baec3 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Thu, 31 Mar 2022 20:31:59 +0530 Subject: [PATCH] added minor error handling --- index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 8f321d9..aef5c67 100644 --- a/index.html +++ b/index.html @@ -1767,7 +1767,9 @@ iterations: [] } } - floGlobals.currentArticle.sections[section].uniqueEntries.add(origin) + if (floGlobals.currentArticle.sections[section]) { + floGlobals.currentArticle.sections[section].uniqueEntries.add(origin) + } floGlobals.currentArticle.uniqueEntries[origin]['iterations'].push(generalData[key].vectorClock) } for (const sectionID in floGlobals.currentArticle.sections) {