ToolJet
ToolJet copied to clipboard
The result of the previous previewed query remains
Version Information
Environment
MacOS 12.3.1
What is the expected behaviour?
The preview pane shows the result of the previously previewed query
What is the current behaviour?
when the query gets deleted (because you clicked the plus button again, without saving the previous query), the preview panel should also be cleared
How to reproduce the issue?
- Create a REST api datasource with this endpoint:
https://reqres.in/ - Click the + button in the Queries panel to create a new query
- Add this path to the datasource url:
api/users - Click the preview button
- Notice the results of the query in the preview panel
- Click the + button again without saving the query
- Notice the path input gets cleared, but the preview panel still shows the result of the previous query
Screenshots or Screencast
https://user-images.githubusercontent.com/1907152/163372131-d7ca1ce5-e652-4560-ae3f-481a4f3558d4.mov
If the bug is confirmed, would you be willing to submit a PR?
No