ToolJet icon indicating copy to clipboard operation
ToolJet copied to clipboard

The result of the previous previewed query remains

Open mslourens opened this issue 3 years ago • 0 comments

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?

  1. Create a REST api datasource with this endpoint: https://reqres.in/
  2. Click the + button in the Queries panel to create a new query
  3. Add this path to the datasource url: api/users
  4. Click the preview button
  5. Notice the results of the query in the preview panel
  6. Click the + button again without saving the query
  7. 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

mslourens avatar Apr 14 '22 10:04 mslourens