mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-06 06:48:21 +00:00
[Bugfix] unable to create a rest api dataquery on v2-beta, (#5170)
* fixes: not able to create new restapi query * fixes: not able to create new restapi query, revert prev commit * resolves restapi datasource id
This commit is contained in:
parent
5fe3822ded
commit
3f64abdaf4
1 changed files with 4 additions and 1 deletions
|
|
@ -23,7 +23,10 @@ function create(app_id, app_version_id, name, kind, options, data_source_id, plu
|
|||
name,
|
||||
kind,
|
||||
options,
|
||||
data_source_id: kind === 'runjs' || kind === 'runpy' ? null : data_source_id,
|
||||
data_source_id:
|
||||
kind === 'runjs' || kind === 'runpy' || (kind === 'restapi' && data_source_id === 'restapi')
|
||||
? null
|
||||
: data_source_id,
|
||||
plugin_id,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue