Skip to content

Commit

Permalink
#2717 remove conditional from isDataSGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinEpam23 committed May 31, 2023
1 parent 299b015 commit 80d605c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ketcher-core/src/domain/entities/sgroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ export class SGroup {
}

static isDataSGroup(sGroup: SGroup): boolean {
return sGroup?.type === SGroup.TYPES.DAT
return sGroup.type === SGroup.TYPES.DAT
}

static isExpandedSGroup(sGroup) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const InfoPanel: FC<InfoPanelProps> = (props) => {
const width = size.x
const height = size.y

const showMolecule = molecule && !SGroup.isDataSGroup(sGroup)
const showMolecule = molecule && sGroup && !SGroup.isDataSGroup(sGroup)

return showMolecule ? (
<div
Expand Down

0 comments on commit 80d605c

Please sign in to comment.