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

Handle empty theme config #58

Open
christian-brindley opened this issue Sep 16, 2023 · 0 comments
Open

Handle empty theme config #58

christian-brindley opened this issue Sep 16, 2023 · 0 comments

Comments

@christian-brindley
Copy link
Collaborator

If the theme config has been completely wiped - i.e.

{"_id":"ui/themerealm","realm":{}}

then fr-config-pull will throw an error like

 fr-config-pull themes
Getting themes
TypeError: Cannot read properties of undefined (reading 'alpha')
    at Object.exportThemes (/Users/xxxx/cicd/fr-config-manager/packages/fr-config-pull/src/scripts/themes.js:86:41)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

It is uncertain how the theme config ends up with an empty realm object, unless forced via the config API. The tooling should handle this gracefully.

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

No branches or pull requests

1 participant