Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elements: add an API check to ensure we aren't trying to save a widget with no elements #2390

Merged

Conversation

dasgarner
Copy link
Member

related to xibosignageltd/xibo-private#617

I elected to throw an error instead of deleting the widget as we shouldn't make a DELETE inside a POST API call. Hopefully the error will give us an example for where this happens in the FE which we can diagnose.

@dasgarner dasgarner self-assigned this Feb 27, 2024
@dasgarner
Copy link
Member Author

TEST: /Layout/Editor END

Copy link
Member

@maurofmferrao maurofmferrao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

Copy link

Test Suite: succeeded ✅
https://github.com/xibosignage/xibo-cms/actions/runs/8065007958

@dasgarner dasgarner merged commit af51e7e into xibosignage:develop Feb 27, 2024
1 of 2 checks passed
@dasgarner dasgarner deleted the bugfix/remove_widget_on_no_elements branch February 27, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants