From b658d2a1bd7f88c62895288d35fd70d50543018c Mon Sep 17 00:00:00 2001
From: David Sehnal <david.sehnal@gmail.com>
Date: Fri, 23 Nov 2018 00:49:35 +0100
Subject: [PATCH] mol-state: null obj error report tweak

---
 src/mol-state/state.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mol-state/state.ts b/src/mol-state/state.ts
index 8acd5b434..56385e82a 100644
--- a/src/mol-state/state.ts
+++ b/src/mol-state/state.ts
@@ -414,7 +414,7 @@ function doError(ctx: UpdateContext, ref: Ref, errorText: string | undefined, si
 
     if (errorText) {
         setCellStatus(ctx, ref, 'error', errorText);
-        ctx.parent.events.log.next({ type: 'error', timestamp: new Date(), message: errorText });
+        if (!silent) ctx.parent.events.log.next({ type: 'error', timestamp: new Date(), message: errorText });
     }
 
     const cell = ctx.cells.get(ref)!;
-- 
GitLab