Budibase / budibase

Low code platform for building business apps and workflows in minutes. Supports PostgreSQL, MySQL, MariaDB, MSSQL, MongoDB, Rest API, Docker, K8s, and more 🚀
https://budibase.com
Other
21.73k stars 1.49k forks source link

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

Open mikesealey opened 1 month ago

mikesealey commented 1 month ago

Checklist

Hosting

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):

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

linear[bot] commented 1 month ago

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