Browse Source

mol-state: null obj error report tweak

David Sehnal 6 years ago
parent
commit
b658d2a1bd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/mol-state/state.ts

+ 1 - 1
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)!;