Browse Source

updateStructureComponent bugfix

David Sehnal 5 years ago
parent
commit
204075bbe0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/mol-plugin-state/helpers/structure-component.ts

+ 1 - 1
src/mol-plugin-state/helpers/structure-component.ts

@@ -115,7 +115,7 @@ export function updateStructureComponent(a: Structure, b: SO.Molecule.Structure,
                 return StateTransformer.UpdateResult.Recreate;
             }
 
-            if (a !== cache.source) return StateTransformer.UpdateResult.Unchanged;
+            if (a === cache.source) return StateTransformer.UpdateResult.Unchanged;
 
             const entry = (cache as { entry: StructureQueryHelper.CacheEntry }).entry;