mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
0e1b2c0b6f
commit
12bd5063c4
1 file changed
+1
-1
@@ -31,7 +31,7 @@ const matchingRouteInjectable = getInjectable({
|
|||||||
const currentPath = di.inject(currentPathInjectable);
|
const currentPath = di.inject(currentPathInjectable);
|
||||||
|
|
||||||
return computed(() => (
|
return computed(() => (
|
||||||
iter.pipeline(routes.get().values())
|
iter.chain(routes.get().values())
|
||||||
.map(getMatchDataForRouteFrom(currentPath.get()))
|
.map(getMatchDataForRouteFrom(currentPath.get()))
|
||||||
.find(data => data.isMatching)
|
.find(data => data.isMatching)
|
||||||
));
|
));
|
||||||
|
|||||||
Reference in new issue
Block a user