create-apexjs 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-apexjs",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Scaffold a new Apex JS app",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -6,7 +6,7 @@
6
6
  // Dynamic route: pages/blog/[slug].alpine → /blog/:slug. The matched param
7
7
  // arrives in loader({ params }).
8
8
  export function loader({ params }: { params: Record<string, string> }) {
9
- const post = posts.bySlug(params.slug)
9
+ const post = params.slug ? posts.bySlug(params.slug) : null
10
10
  return { post: post ?? null }
11
11
  }
12
12