Skip to content

Commit 454a22d

Browse files
committed
fix(studio): return when collection not found
1 parent 022c385 commit 454a22d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/runtime/internal/preview/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ export function initIframeCommunication() {
271271
const { collection } = getCollectionByRoutePath(routePath, collections)
272272
if (!collection || collection.type !== 'page') {
273273
window.sendNavigateMessageInPreview(routePath, false)
274+
return
274275
}
275276

276277
const db = loadDatabaseAdapter(collection.name)

0 commit comments

Comments
 (0)