fix(index): reading time non-null assertion
All checks were successful
build dist / build-dist (push) Successful in 37s
All checks were successful
build dist / build-dist (push) Successful in 37s
This commit is contained in:
parent
16b6ed22cc
commit
69ddacc7cf
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ const { entry } = Astro.props as {
|
||||||
};
|
};
|
||||||
|
|
||||||
const formattedDate = formatDate(entry.data.date);
|
const formattedDate = formatDate(entry.data.date);
|
||||||
const readTime = readingTime(entry.body!);
|
const readTime = readingTime(entry.body ?? "");
|
||||||
---
|
---
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue