Skip to content

Commit

Permalink
fix TypeError: 'NoneType' object is not a mapping
Browse files Browse the repository at this point in the history
in self.scene_kwargs = {
            **({"axisView": "HIDDEN"} if is_mol else {}),
            **scene_kwargs,
        }
  • Loading branch information
janosh committed Nov 14, 2023
1 parent 366bd21 commit b5511a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crystal_toolkit/components/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def __init__(
self.scene_kwargs = {
# hide axes inset for molecules
**({"axisView": "HIDDEN"} if is_mol else {}),
**scene_kwargs,
**(scene_kwargs or {}),
}

def __str__(self) -> str:
Expand Down

0 comments on commit b5511a0

Please sign in to comment.