Skip to content

Commit 71f19a4

Browse files
committed
fix: remove await connection() workaround on 404 pages
1 parent f028691 commit 71f19a4

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.changeset/evil-dogs-shine.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@bigcommerce/catalyst-core": patch
3+
---
4+
5+
Remove `await connection()` workaround on 404 pages

core/lib/makeswift/page.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ export async function Page({ path, locale }: { path: string; locale: string }) {
88
const snapshot = await getPageSnapshot({ path, locale });
99

1010
if (snapshot == null) {
11-
// This is a temporary solution to fix the issue where non-published pages are not editable in the builder.
12-
await connection();
13-
1411
return notFound();
1512
}
1613

0 commit comments

Comments
 (0)