Skip to content

Commit 2bc1542

Browse files
committed
fix
1 parent 20abcf2 commit 2bc1542

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hooks/useModuleInfo.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ const canonicalPath = (str) => {
6868
* @returns {object} An object shaped like { id, name, permissionSets, provides, requires }
6969
*/
7070
const useModuleInfo = (path) => {
71-
const { interfaceProviders } = useStripes();
71+
const stripes = useStripes();
7272

73-
const paths = interfaceProviders.reduce((acc, impl) => {
73+
const paths = stripes.interfaceProviders?.reduce((acc, impl) => {
7474
return { ...acc, ...mapPathToImpl(impl) };
7575
}, {});
7676

0 commit comments

Comments
 (0)