Skip to content

Commit

Permalink
#225 – removed previous crutch solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitvex committed Apr 12, 2023
1 parent 376182d commit ac95fab
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,7 @@ const InfoPanel: FC<InfoPanelProps> = (props) => {
const groupName = sGroup?.data?.name

useEffect(() => {
// workaround for current release; just don't show tooltip for CIP data
// in future release CIP will be atom/bond property, not a s-group property
const CIP_FIELD_NAME = 'INDIGO_CIP_DESC'
if (
!groupStruct &&
sGroup?.type === 'DAT' &&
sGroup.data?.fieldName !== CIP_FIELD_NAME
) {
if (!groupStruct && sGroup?.type === 'DAT') {
setSGroupData(`${sGroup.data?.fieldName}=${sGroup.data?.fieldValue}`)
} else {
setSGroupData(null)
Expand Down

0 comments on commit ac95fab

Please sign in to comment.