From a0de8dd9f98e60e3913de7dd9ea912f8f72f6fb0 Mon Sep 17 00:00:00 2001
From: Alexander Rose <alex.rose@rcsb.org>
Date: Mon, 22 Jul 2019 12:14:03 -0700
Subject: [PATCH] fixed seq widget update on object change

---
 src/mol-plugin/ui/sequence.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mol-plugin/ui/sequence.tsx b/src/mol-plugin/ui/sequence.tsx
index 0f7d6f5bd..e1a3b8cbd 100644
--- a/src/mol-plugin/ui/sequence.tsx
+++ b/src/mol-plugin/ui/sequence.tsx
@@ -140,7 +140,7 @@ export class SequenceView extends PluginUIComponent<{ }, SequenceViewState> {
 
         this.subscribe(this.plugin.events.state.object.updated, ({ ref, state }) => {
             const current = this.spine.current;
-            if (!current || current.sourceRef !== ref || current.state !== state) return;
+            if (!current || current.sourceRef !== ref) return;
             this.setState(this.getInitialState())
         });
     }
-- 
GitLab