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

t.enabled undefined on Style-CI export without rules #47

Closed
Shikachuu opened this issue Nov 12, 2023 · 0 comments · Fixed by #51
Closed

t.enabled undefined on Style-CI export without rules #47

Shikachuu opened this issue Nov 12, 2023 · 0 comments · Fixed by #51

Comments

@Shikachuu
Copy link
Contributor

Shikachuu commented Nov 12, 2023

Current Behaviour

In an Style-CI export without rules it prints t.enabled undefined.
image

Reproduce

If you fresh open the main page go to Export and pick Style-CI in the Format dropdown it will print undefined.

Possible Solution

Caused by the conditions at the end of StyleCIExporter.convertConfiguration, because both converted.enabled and converted.disabled is undefined if converted object itself is empty, so calling .length on them will definetly fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant