Skip to content

Commit

Permalink
Document routes.parts (sveltejs#1265)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored and trmcnvn committed Aug 15, 2020
1 parent 43fd8e6 commit 6ef2c4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/create_app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ function generate_client_manifest(
pattern: ${page.pattern},
parts: [
${page.parts.map(part => {
if (part === null) return 'null';
const missing_layout = !part;
if (missing_layout) return 'null';
if (part.params.length > 0) {
needs_decode = true;
Expand Down

0 comments on commit 6ef2c4c

Please sign in to comment.