Commit 33568e3
authored
Fix invalid JSON warning on empty binding arguments (#1749)
### WHAT is this pull request doing?
Trim whitespace in `parseJSON` so empty or whitespace-only Arguments
input returns `{}` instead of showing an error. Replace `window.alert`
with `toast.error` for invalid JSON feedback.
Fixes #1725
### HOW can this pull request be tested?
In the UI, try to add a binding to a queue with an empty space in the
JSON input field - Should pass
Then try to do the same but with invalid JSON - should not pass1 parent 7a96ce1 commit 33568e3
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | | - | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments