From b47e87af98edb0d3beaf593b473dd6cceb495dcb Mon Sep 17 00:00:00 2001
From: Mark Hall <mark.hall@work.room3b.eu>
Date: Tue, 10 Dec 2019 09:49:07 +0000
Subject: [PATCH] Updated the TEI editor

---
 CHANGES.md                            | 4 ++++
 editor/static/editor/js/tei-editor.js | 2 +-
 yarn.lock                             | 6 +++---
 3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/CHANGES.md b/CHANGES.md
index 4b6d69f..0a025d6 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,5 +1,9 @@
 # Changes
 
+## Development ():
+
+* **Bugfix**: Update the TEI editor dependency
+
 ## 0.8.10 (05.12.2019):
 
 * **Bugfix**: Updated the config to actually enable the deduplication
diff --git a/editor/static/editor/js/tei-editor.js b/editor/static/editor/js/tei-editor.js
index b3cd75c..1536902 100644
--- a/editor/static/editor/js/tei-editor.js
+++ b/editor/static/editor/js/tei-editor.js
@@ -4873,7 +4873,7 @@ r&&(t[e.children[n].tag.substring(e.children[n].tag.indexOf(":")+1)]=r)}e.dedupl
 if(e.multiple){if(e.deduplicate){let t=[]
 r.forEach(n=>{let r=!1
 e.deduplicate.merge.forEach(t=>{let e=Xi([n,t.tag.substring(t.tag.indexOf(":")+1)])
-e&&e.length>1&&(r=!0)}),r?t=t.concat(this.duplicateNode(n,e.deduplicate.merge)):t.append(n)}),r=t}return r}return r[0]}parseHeader(t){let e=this.xpath.firstNode(this.dom.documentElement,t.tag),n={}
+e&&e.length>1&&(r=!0)}),r?t=t.concat(this.duplicateNode(n,e.deduplicate.merge)):t.push(n)}),r=t}return r}return r[0]}parseHeader(t){let e=this.xpath.firstNode(this.dom.documentElement,t.tag),n={}
 for(let r=0;r<t.schema.length;r++){let i=this.parseHeaderNode(e,t.schema[r])
 i&&(n[t.schema[r].tag.substring(4)]=i)}return n}parseMultiText(t){let e=this.xpath.firstNode(this.dom.documentElement,t.parser.selector)
 if(e){let n=[],r=this.xpath.nodeIterator(e,t.parts.parser.selector),i=r.iterateNext()
diff --git a/yarn.lock b/yarn.lock
index 4c3c368..1d5e45d 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2890,9 +2890,9 @@ tar@^4:
     yallist "^3.0.3"
 
 tei-editor@^0.4.0:
-  version "0.4.0"
-  resolved "https://registry.yarnpkg.com/tei-editor/-/tei-editor-0.4.0.tgz#19956b9be21326fba0c8c7c06fe322e5123ad181"
-  integrity sha512-8/vwtzsEoKHX6cBjTV6X5gubEbl7zgq7BaVeqgtVKw38NsUdIjEpOGeXEuOzTAUKzPawtE+K66iHcIj9LpcUcA==
+  version "0.4.1"
+  resolved "https://registry.yarnpkg.com/tei-editor/-/tei-editor-0.4.1.tgz#ec92fa25ede82d25c24e413179660a24f9130345"
+  integrity sha512-vXuAZgEBiH+og4KwSQfdshrRZiEodYwejFF80ED4Ndf+uj6lQVx1+vL6H/NzF8j37bLxCj+S2L0vuVhtn3MPXQ==
 
 through2-filter@^3.0.0:
   version "3.0.0"
-- 
GitLab