Skip to content

Commit 2805511

Browse files
committed
Small BF on SCR Module Scorer
Signed-off-by: David Weik <[email protected]>
1 parent 3634fa7 commit 2805511

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## SAS Portal Framework for SAS Viya v1.2.1
4+
5+
- Fix: The SCR Module Scorer object had a bug where it would parse a string beginning with a number as a number and remove the text
6+
37
## SAS Portal Framework for SAS Viya v1.2.0
48

59
- Add: all currently supported objects to the Portal Builder object

js/objects/add-scrScore-object.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async function addSCRScoreObject(scrObject, paneID, scrInterfaceText) {
4242
const values = Array.from(submitForm.elements).map((x) => {
4343
return {
4444
name: x.id,
45-
value: isNaN(parseFloat(x.value))
45+
value: isNaN(Number(x.value))
4646
? x.value
4747
: parseFloat(x.value),
4848
};

0 commit comments

Comments
 (0)