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

fix: custom styles from 1.x can crash the app #4159

Merged
merged 3 commits into from
Jan 10, 2025

Conversation

SychO9
Copy link
Member

@SychO9 SychO9 commented Jan 10, 2025

Fixes #0000

Changes proposed in this pull request:
When upgrading from 1.x to 2.x, some instances will have custom less code that is no longer valid in 2.x, when that happens the upgraded instance will immediately crash.

This PR adds a safe guard to prevent crashes from invalid custom less code. It saves the error messages then displays it on the custom styles edit modal. Once the custom less is changed and saved, the new value is validated again and the error forgotten if valid.

image

@SychO9 SychO9 requested a review from a team as a code owner January 10, 2025 10:30
@SychO9 SychO9 added this to the 2.0.0-beta.2 milestone Jan 10, 2025
@SychO9 SychO9 merged commit 36d0795 into 2.x Jan 10, 2025
28 checks passed
@SychO9 SychO9 deleted the sm/1.x-custom-less-will-cause-errors branch January 10, 2025 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant