Skip to content

Commit 4c55cc2

Browse files
committed
ui: don't remove values from request if the value is null or empty string
1 parent 70cc55d commit 4c55cc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/api/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function postAPI (command, data = {}) {
4747
params.append('response', 'json')
4848
if (data) {
4949
Object.entries(data).forEach(([key, value]) => {
50-
if (value !== undefined && value !== null && value !== '') {
50+
if (value !== undefined) {
5151
params.append(key, value)
5252
}
5353
})

0 commit comments

Comments
 (0)