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
22.86k stars 1.58k forks source link

Saving an empty snippet leads to the builder crashing #15113

Open mikesealey opened 16 hours ago

mikesealey commented 16 hours ago

Checklist

Hosting

Describe the bug A clear and concise description of what the bug is.

Snippets are a premium feature. Steps to reproduce assume that you're using a premium instance To Reproduce Steps to reproduce the behavior:

  1. In a screen, add a headline binding
  2. Open the bindings drawer and switch to JS
  3. Click the Snippets icon and add a new snippet
  4. Save an empty snippet image
  5. Try to add it to the input box in the bindings drawer by clicking on it
  6. builder becomes unresponsive.

Expected behavior empty snippets should not break the builder.

Screenshots Jam https://jam.dev/c/81a6d8b8-0e21-4b06-b185-30f94e403005

For no obvious reason, Jam didn't capture this error at 21 seconds (when the snippet is clicked from the list in the bindings menu) Screenshot 2024-12-03 at 17 58 20

App Export Snippets-export-1733248847467.tar.gz

Desktop (please complete the following information):

Additional context Issue raised by CSE on behalf of customer.

As part of the initial inquiry the customer also stated that snippets that they had written were gone, which is how they discovered that empty snippets cause the builder to crash.

linear[bot] commented 16 hours ago

BUDI-8894 Saving an empty snippet leads to the builder crashing