Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 52bbfc6

Browse files
fix: fixed stream query broadcast method params
1 parent e8d8999 commit 52bbfc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎client/packages/lowcoder/src/comps/queries/httpQuery/streamQuery.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ StreamTmpQuery = withMethodExposing(StreamTmpQuery, [
6464
{
6565
method: {
6666
name: "broadcast",
67-
params: [{ name: "args", type: "JSON" }],
67+
params: [{ name: "data", type: "JSON" }],
6868
},
6969
execute: (comp, params) => {
7070
return new Promise((resolve, reject) => {
7171
const tmpComp = (comp as StreamQuery);
7272
if(!tmpComp.getSocket()) {
7373
return reject('Socket message send failed')
7474
}
75-
tmpComp.broadcast(params);
75+
tmpComp.broadcast(params[0]);
7676
resolve({});
7777
})
7878
},

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /