Skip to content

Commit

Permalink
fix(preset): group title fallback logic
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript committed Apr 15, 2020
1 parent 20f19ab commit b189b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/preset-dumi/src/routes/decorator/group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default (function group(routes) {
if (route.meta.group?.path && !route.meta.group.title) {
route.meta.group.title =
// use other same group path title first
userCustomGroupTitles[route.meta.group.title] ||
userCustomGroupTitles[route.meta.group.path] ||
// fallback group title if there only has group path
route.meta.group.path
// discard nav prefix path or locale prefix path
Expand Down

0 comments on commit b189b1a

Please sign in to comment.