Skip to content

Commit

Permalink
fix: template error createElement
Browse files Browse the repository at this point in the history
  • Loading branch information
megheaiulian committed Oct 18, 2022
1 parent bc84e69 commit 8911ebd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ export const load =
...match.result?.groups,
...Object.fromEntries(url.searchParams ?? []),
};
return Promise.resolve(pack(params)).then(
() =>
html`${createElement(typeof tag === 'function' ? tag(url) : tag, {
params,
})}`
return Promise.resolve(pack(params)).then(() =>
createElement(typeof tag === 'function' ? tag(url) : tag, {
params,
})
);
};

0 comments on commit 8911ebd

Please sign in to comment.