Skip to content

Commit 0b4c6fe

Browse files
viewer_call empty params by default
1 parent 2c4b019 commit 0b4c6fe

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

composables/viewer_call.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import _ from "lodash"
2-
31
export function viewer_call(
42
{ schema, params = {} },
53
{ request_error_function, response_function, response_error_function } = {},
@@ -21,19 +19,13 @@ export function viewer_call(
2119

2220
const client = viewer_store.client
2321

24-
if (!_.isEmpty(schema.properties)) {
25-
params = [params]
26-
} else {
27-
params = []
28-
}
29-
3022
let promise = new Promise((resolve, reject) => {
3123
if (client) {
3224
viewer_store.start_request()
3325
client
3426
.getConnection()
3527
.getSession()
36-
.call(schema.rpc, params)
28+
.call(schema.rpc, [params])
3729
.then(
3830
(value) => {
3931
if (response_function) {

0 commit comments

Comments
 (0)