ToolJet
ToolJet copied to clipboard
[datasource]: RestApi definition is lost when data source is updated
What is the expected behavior?
If we add a restApi data source and create a query with params, type, and other details then adding the data source should not make the initial query settings disappear.
What is the current behavior?
If we add a restApi data source and create a query with params, type, and other details then adding the data source again makes the initial query settings disappear.
How to reproduce the issue?
- Visit the link and create a new application.
- On the left-hand side, click on "Sources" and then add a new data source as the rest API with details required.
- Once added, add a new query in the query panel at the bottom.
- Now set the query with a type of call, params, and headers
- Once done click on create the query.
- Now again follow step 2 and change "Authentication type"
- Now the original query created will be lost a post-last step
- Refer to the screen recording below to recreate the issue
Screenshots or Screencast
https://drive.google.com/file/d/1RvqM8C0zGHYZsiWbi8CVP363wsULmbt7/view?usp=sharing