From 0eaf6db2d65e7ce4e495b9e019d2ddbc914f0668 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Tue, 16 Apr 2019 09:17:57 +0100 Subject: [PATCH] Merge pull request #1703 from sharelatex/bg-handle-send-before-rejoin handle error gracefully when client has not yet joined project GitOrigin-RevId: 21e337f6adbbb23a2126eaf4fa026c78178efef0 --- services/web/public/src/ide/editor/Document.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/web/public/src/ide/editor/Document.js b/services/web/public/src/ide/editor/Document.js index a89895ad3e..c91808db9f 100644 --- a/services/web/public/src/ide/editor/Document.js +++ b/services/web/public/src/ide/editor/Document.js @@ -665,6 +665,10 @@ define([ } meta.doc_id = this.doc_id sl_console.log('ShareJS error', error, meta) + if (error.message === 'no project_id found on client') { + sl_console.log('ignoring error, will wait to join project') + return + } if (typeof ga === 'function') { ga( 'send',