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: better handle env variables and execution flags settings changes #1410

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

dsanders11
Copy link
Member

The execution settings panel broke as a result of #1389. Making SettingItemType a proper enum broke the code which iterates over the values, as TypeScript is now creating a reverse mapping as well, which means Object.values was returning keys as well.

Refactored so that iterating the enum values is not necessary, and probably a bit better implementation as a result. It's still kind of funky how this state is stored on both AppState and ExecutionSettingsState, but this fixes the immediate breakage.

@dsanders11 dsanders11 requested review from a team and codebytere as code owners July 18, 2023 23:19
@dsanders11 dsanders11 merged commit cf79584 into main Jul 19, 2023
@dsanders11 dsanders11 deleted the fix-settings-execution branch July 19, 2023 20:08
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