mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-17 02:17:49 +00:00
Merge branch 'fix-table-not-found-error-page' into 'develop'
Fix bug where the error page of a table not found page fails hard. See merge request baserow/baserow!3319
This commit is contained in:
commit
6c08674f49
2 changed files with 17 additions and 3 deletions
changelog/entries/unreleased/bug
web-frontend/modules/database/pages
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"type": "bug",
|
||||||
|
"message": "Fix bug where the error page of a table not found page fails hard.",
|
||||||
|
"domain": "database",
|
||||||
|
"issue_number": null,
|
||||||
|
"bullet_points": [],
|
||||||
|
"created_at": "2025-03-31"
|
||||||
|
}
|
|
@ -153,6 +153,8 @@ export default {
|
||||||
if (e.response === undefined && !(e instanceof StoreItemLookupError)) {
|
if (e.response === undefined && !(e instanceof StoreItemLookupError)) {
|
||||||
throw e
|
throw e
|
||||||
}
|
}
|
||||||
|
data.database = null
|
||||||
|
data.table = null
|
||||||
data.error = normalizeError(e)
|
data.error = normalizeError(e)
|
||||||
return data
|
return data
|
||||||
}
|
}
|
||||||
|
@ -220,7 +222,7 @@ export default {
|
||||||
},
|
},
|
||||||
head() {
|
head() {
|
||||||
return {
|
return {
|
||||||
title: (this.view ? this.view.name + ' - ' : '') + this.table.name,
|
title: (this.view ? this.view.name + ' - ' : '') + this.table?.name || '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -244,10 +246,14 @@ export default {
|
||||||
this.$store.dispatch('table/setLoading', false)
|
this.$store.dispatch('table/setLoading', false)
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$realtime.subscribe('table', { table_id: this.table.id })
|
if (this.table) {
|
||||||
|
this.$realtime.subscribe('table', { table_id: this.table.id })
|
||||||
|
}
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
this.$realtime.unsubscribe('table', { table_id: this.table.id })
|
if (this.table) {
|
||||||
|
this.$realtime.unsubscribe('table', { table_id: this.table.id })
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
selectedView(view) {
|
selectedView(view) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue