Commit 650d8fd
graphing/designer: unset a constant whose value was cleared
Vue casts a number field through looseToNumber, which hands back the raw
string when parseFloat cannot read it, so an emptied input stored '' in a
field typed number | null and sent it to a backend that rejects it.
JIRA-Ref: CMK-37206
Change-Id: Ia0b8ff7dd7200c995f87099f20df04ba12d4ed831 parent 1acd9c5 commit 650d8fd
2 files changed
Lines changed: 13 additions & 2 deletions
File tree
- packages/cmk-frontend-vue
- src/graphing/designer/components/forms
- tests/graphing/designer/components
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
0 commit comments