Skip to content

Commit

Permalink
STCOR-949 omit leading slash in useModuleInfo's ky path
Browse files Browse the repository at this point in the history
Whoops, `ky` doesn't want a leading slash when using the `prefixUrl`
property and whines about it in the console.

Refs STCOR-949
  • Loading branch information
zburke committed Feb 21, 2025
1 parent 94f6864 commit 1b3da2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* Change Help icon aria label to just Help in MainNav component. Refs STCOR-931.
* *BREAKING* remove token-based authentication code. Refs STCOR-918.
* *BREAKING* replace useSecureTokens conditionalsRefs STCOR-922.
* Omit leading slash in paths passed to `ky` in `useModuleInfo`. Refs STCOR-949.

## [10.2.0](https://github.com/folio-org/stripes-core/tree/v10.2.0) (2024-10-11)
[Full Changelog](https://github.com/folio-org/stripes-core/compare/v10.1.1...v10.2.0)
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useModuleInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const useModuleInfo = (path) => {
[namespace],
({ signal }) => {
return ky.get(
`/_/proxy/tenants/${stripes.okapi.tenant}/modules?full=true`,
`_/proxy/tenants/${stripes.okapi.tenant}/modules?full=true`,
{ signal },
).json();
}
Expand Down

0 comments on commit 1b3da2e

Please sign in to comment.