Explorar o código

updateStructureComponent bugfix

David Sehnal %!s(int64=5) %!d(string=hai) anos
pai
achega
204075bbe0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;