Skip to content

Commit bf24ec7

Browse files
committed
fix: update server rendered package condition
1 parent b699286 commit bf24ec7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/pages/package/[[org]]/[name].vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,13 +785,13 @@ const showSkeleton = shallowRef(false)
785785
v-html is safe here: the content originates from the server's own SSR output,
786786
captured from the DOM before hydration — it is not user-controlled input. -->
787787
<article
788-
v-else-if="isHydratingWithServerContent && serverRenderedHtml"
788+
v-else-if="isHydratingWithServerContent || (hasEmptyPayload && !pkg)"
789789
id="package-article"
790790
:class="$style.packagePage"
791791
v-html="serverRenderedHtml"
792792
/>
793793

794-
<article v-else-if="pkg?._id !== undefined" id="package-article" :class="$style.packagePage">
794+
<article v-else-if="pkg" id="package-article" :class="$style.packagePage">
795795
<!-- Package header -->
796796
<header
797797
class="sticky top-14 z-1 bg-[--bg] py-2 border-border"

0 commit comments

Comments
 (0)