Skip to content

Commit

Permalink
fix: minor concurrency issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mikededo committed Aug 13, 2023
1 parent 2606b71 commit 5e9bb28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/apps/editor/stores/global-state/feature-switches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export type FeatureSwitchesStore = FeatureSwitchesState &
const FSKeys = new Set<FeatureSwitches>([
'fsGlobalDrag',
'fsDarkTheme',
'fsConcurrency',
'fsCopyAction',
]);
const saveFSStateToLocalStorage = (
Expand Down
2 changes: 1 addition & 1 deletion src/apps/editor/stores/global-state/optional-sections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const optionalSectionsStore: StateCreator<
osPermissions: LSOptionalSections?.osPermissions ?? false,
osEnv: LSOptionalSections?.osEnv ?? false,
osDefaults: LSOptionalSections?.osDefaults ?? false,
osConcurrency: LSOptionalSections?.osDefaults ?? false,
osConcurrency: LSOptionalSections?.osConcurrency ?? false,
toggleOS: (key) => {
const state = get();
const value = !state[key];
Expand Down

0 comments on commit 5e9bb28

Please sign in to comment.