Fix isView.

This commit is contained in:
Sam Rose 2024-09-26 17:22:11 +01:00
parent 559988e011
commit 264b10f3f3
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ export async function getTable(view: string | ViewV2): Promise<Table> {
} }
export function isView(view: any): view is ViewV2 { export function isView(view: any): view is ViewV2 {
return view._id && docIds.isViewId(view._id) && view.version === 2 return view.id && docIds.isViewId(view.id) && view.version === 2
} }
async function guardCalculationViewSchema( async function guardCalculationViewSchema(