Skip to content

Commit

Permalink
Merge pull request #42 from uncountableinc/david/s-group-uneditable
Browse files Browse the repository at this point in the history
stop overwriting s group
  • Loading branch information
martinuncountable authored Feb 27, 2025
2 parents 9bc7c59 + a2c88a6 commit f6ca49e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,6 @@ export function fromSgroup(ssgroup) {
sdataSchema[context][fieldName].properties.fieldValue.items
)
ssgroup.attrs.fieldValue = fieldValue.split('\n');

const sDataInitValue =
type === 'DAT'
? {
Expand All @@ -420,13 +419,14 @@ export function fromSgroup(ssgroup) {
fieldValue:
fieldValue || getSdataDefault(sdataCustomSchema, 'fieldValue'),
}
: type === 'SRU'
: type === 'SRU' &&
ssgroup.attrs.subscript == null &&
ssgroup.attrs.connectivity == null
? {
subscript: 'n',
connectivity: 'ht',
}
: {};

return Object.assign({ type }, ssgroup.attrs, sDataInitValue);
}

Expand Down

0 comments on commit f6ca49e

Please sign in to comment.