Skip to content

Commit 5d65427

Browse files
authored
Show 404 error instead of throwing it for public pages (baserow#4796)
1 parent c6686ec commit 5d65427

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

web-frontend/modules/builder/pages/publicPage.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,11 @@ const { data: asyncDataResult, error } = await useAsyncData(
303303
304304
if (error.value) {
305305
// If we have an error we want to display it.
306-
throw error.value
306+
if (error.value.statusCode === 404) {
307+
showError(error.value)
308+
} else {
309+
throw error.value
310+
}
307311
}
308312
309313
const workspace = computed(() => asyncDataResult.value.workspace)

0 commit comments

Comments
 (0)