mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 22:17:08 +00:00
fix: throwing errors
This commit is contained in:
@@ -26,7 +26,12 @@ const viewsRef = shallowRef<ViewType[]>([])
|
||||
watch(
|
||||
() => [props.tableId, props.ignoreLoading, props.forceFetchViews],
|
||||
async () => {
|
||||
await viewsStore.loadViews({ tableId: props.tableId, ignoreLoading: props.ignoreLoading, force: props.forceFetchViews })
|
||||
try {
|
||||
await viewsStore.loadViews({ tableId: props.tableId, ignoreLoading: props.ignoreLoading, force: props.forceFetchViews })
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
|
||||
let viewsList: ViewType[] = viewsByTable.value.get(props.tableId) || []
|
||||
if (props.labelDefaultViewAsDefault) {
|
||||
viewsList = viewsList.map((v) => ({ ...v, title: v.is_default ? 'Default View' : v.title }))
|
||||
|
||||
Reference in New Issue
Block a user