Skip to content

Commit

Permalink
chore(deps): bump camelcase-keys from 8.0.2 to 9.0.0 in /editor.planx…
Browse files Browse the repository at this point in the history
….uk (#2207)

* chore(deps): bump camelcase-keys from 8.0.2 to 9.0.0 in /editor.planx.uk

Bumps [camelcase-keys](https://github.com/sindresorhus/camelcase-keys) from 8.0.2 to 9.0.0.
- [Release notes](https://github.com/sindresorhus/camelcase-keys/releases)
- [Commits](sindresorhus/camelcase-keys@v8.0.2...v9.0.0)

---
updated-dependencies:
- dependency-name: camelcase-keys
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix: Cast to make lib happy with types

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dafydd Llŷr Pearson <[email protected]>
  • Loading branch information
dependabot[bot] and DafyddLlyr authored Sep 11, 2023
1 parent 9e75364 commit 7dcf60c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 17 deletions.
2 changes: 1 addition & 1 deletion editor.planx.uk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@turf/helpers": "^6.5.0",
"array-move": "^4.0.0",
"axios": "0.27.2",
"camelcase-keys": "^8.0.2",
"camelcase-keys": "^9.0.0",
"classnames": "^2.3.2",
"core-js": "^3.31.0",
"date-fns": "^2.30.0",
Expand Down
28 changes: 14 additions & 14 deletions editor.planx.uk/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions editor.planx.uk/src/pages/FlowEditor/lib/store/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ export const settingsStore: StateCreator<

globalSettings: undefined,

setGlobalSettings: (globalSettings) =>
set({ globalSettings: camelcaseKeys(globalSettings) }),
setGlobalSettings: (globalSettings) => {
const fixedKeys = camelcaseKeys(
globalSettings as Record<string, unknown>,
) as GlobalSettings;
set({ globalSettings: fixedKeys });
},

updateFlowSettings: async (newSettings) => {
const { teamSlug, flowSlug } = get();
Expand Down

0 comments on commit 7dcf60c

Please sign in to comment.