Skip to content

Commit

Permalink
STCOR-949 omit leading slash in useModuleInfo's ky path (#1599)
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 authored Feb 24, 2025
1 parent db9d895 commit 18b82a3
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 @@ -24,6 +24,7 @@
* *BREAKING* remove token-based authentication code. Refs STCOR-918.
* *BREAKING* replace useSecureTokens conditionalsRefs STCOR-922.
* Set tenant context based on authentication response with overrideUser parameter on login (Eureka, ECS - Single tenant UX) STCOR-946.
* 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 18b82a3

Please sign in to comment.