Skip to content

Commit

Permalink
Improve labels for SRU polymer S-groups
Browse files Browse the repository at this point in the history
  • Loading branch information
leb2 committed Jul 18, 2024
1 parent 80096e5 commit 00ed74f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,9 @@ class ReSGroup extends ReObject {
}
case 'SRU': {
let connectivity: string = sgroup.data.connectivity || 'eu';

Check failure on line 98 in packages/ketcher-core/src/application/render/restruct/resgroup.ts

View workflow job for this annotation

GitHub Actions / build (18.14.0)

'connectivity' is never reassigned. Use 'const' instead
if (connectivity === 'ht') connectivity = '';
const subscript = sgroup.data.subscript || 'n';
SGroupdrawBracketsOptions.lowerIndexText = subscript;
SGroupdrawBracketsOptions.upperIndexText = connectivity;
SGroupdrawBracketsOptions.upperIndexText = connectivity.toUpperCase();
break;
}
case 'SUP': {
Expand Down

0 comments on commit 00ed74f

Please sign in to comment.