Skip to content

Commit 0b689c4

Browse files
committed
chore: debugging weight problem
1 parent 08dd3ea commit 0b689c4

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)