Skip to content

fix: better handle env variables and execution flags settings changes#1410

Merged
dsanders11 merged 1 commit intomainfrom
fix-settings-execution
Jul 19, 2023
Merged

fix: better handle env variables and execution flags settings changes#1410
dsanders11 merged 1 commit intomainfrom
fix-settings-execution

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