Преглед на файлове

fixed seq widget update on object change

Alexander Rose преди 5 години
родител
ревизия
a0de8dd9f9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/mol-plugin/ui/sequence.tsx

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