Skip to content

Commit b3391e9

Browse files
committed
fix?
1 parent 9ba759a commit b3391e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/gatsby/onPostBuild.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ const parsePathSlug = (slug: string) => {
7272
const pathMatch = slug.match(
7373
/^\/(?<platform>[^/]+)\/performance-onboarding\/(?<sub_platform>[^/]+)\/(?<step>[^/]+)\/$/
7474
);
75-
75+
console.log('slug', slug);
7676
const { platform, sub_platform } = pathMatch.groups;
77-
let { step } = pathMatch.groups;
78-
step = step.replaceAll(".", "-");
77+
let step = pathMatch.groups.step;
78+
step = String(step).replaceAll(".", "-");
7979
let sub = `performance-onboarding-${sub_platform}-${step}`;
8080

8181
if (platform === pathMatch.groups.sub_platform) {

0 commit comments

Comments
 (0)