budibase icon indicating copy to clipboard operation
budibase copied to clipboard

When unsuccessfully navigating away from an unfinished/broken query, selected tab changes

Open mikesealey opened this issue 7 months ago • 1 comments

Checklist

  • [Y] I have searched budibase discussions and github issues to check if my issue already exists

Hosting

  • Self & Cloud

Describe the bug If I am part-way through writing a query in the Data tab and try to switch to the Design tab my query throws an error but the highlighting still switches from Data to Design, despite still being in the Data section

To Reproduce Steps to reproduce the behavior:

  1. Go to Data tab
  2. Write an incomplete, unsaveable, bugged query
  3. Click the Design/Automations/Settings tab
  4. App throws error, highlighted tab still changes

Expected behaviour Highlighted tab should only change after successfully navigating to that tab. Highlighting currently changes before navigating away.

Screenshots Jam screen recording https://jam.dev/c/c4a6a65e-6c07-475b-9c89-74bd4070f88a image

App Export If possible - please attach an export of your budibase application for debugging/reproduction purposes.

Desktop (please complete the following information):

  • OS: macOS
  • Browser Chrome
  • Version 126.0.6478.127 (Official Build) (arm64)

Additional context Issue demonstrated using Redis as a datasource, also observable with MySQL and Elastic Search (though this list is not exhaustive)

mikesealey avatar Jul 22 '24 07:07 mikesealey