Skip to content

Commit 0465ea3

Browse files
committed
Prevent from adding empty value from prep dialog
Fixes #6050
1 parent 0bb287a commit 0465ea3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

specifyweb/frontend/js_src/lib/components/Interactions/PrepDialog.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ export function PrepDialog({
186186
const loanPreparation = toTable(result, 'LoanPreparation');
187187
loanPreparation?.set('quantityReturned', 0);
188188
loanPreparation?.set('quantityResolved', 0);
189+
if (Number.isNaN(result.get('quantity'))) {
190+
result.set('quantity', 0)
191+
}
189192
return result;
190193
})
191194
);

0 commit comments

Comments
 (0)