summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-10-24 10:42:39 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-10-24 10:42:39 +0200
commit000f3ae886a67639e2a44fe82fd463f89f09ff8f (patch)
tree87f20742a9c2d2b48dd129f2c2387f24e861824a /src
parentd2b25064a628c929d7c8f5239896e80e4552e1c2 (diff)
Update webpack and fix response check
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/store/contacts.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/store/contacts.js b/src/store/contacts.js
index e2220e91..cfcd26ba 100644
--- a/src/store/contacts.js
+++ b/src/store/contacts.js
@@ -278,7 +278,7 @@ const actions = {
return contact.dav.update()
.then((response) => {
// wrong etag, we most likely have a conflict
- if (response.status === 412) {
+ if (response && response.status === 412) {
// saving the new etag so that the user can manually
// trigger a fetchCompleteData without any further errors
contact.conflict = response.xhr.getResponseHeader('etag')