Skip to content

Commit 9f34834

Browse files
authored
Merge pull request #176 from scholarsportal/nana-dev
chore: debugging weight problem
2 parents f349379 + 0b689c4 commit 9f34834

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/new.state/xml/xml.util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export function changeWeightForSelectedVariables(
138138
weightID && weightID !== 'remove'
139139
? frequencyTableForSelectedVariables[variableID][
140140
category.catValu
141-
]
141+
] || 0
142142
: 0,
143143
'@_type': 'freq',
144144
'@_wgtd': 'wgtd',
@@ -153,7 +153,7 @@ export function changeWeightForSelectedVariables(
153153
weightID && weightID !== 'remove'
154154
? frequencyTableForSelectedVariables[variableID][
155155
category.catValu
156-
]
156+
] || 0
157157
: 0,
158158
'@_type': 'freq',
159159
'@_wgtd': 'wgtd',

0 commit comments

Comments
 (0)