Cleanup
This commit is contained in:
parent
1972ed6533
commit
119767a30e
|
@ -14,7 +14,7 @@ export async function searchView(
|
||||||
) {
|
) {
|
||||||
const { viewId } = ctx.params
|
const { viewId } = ctx.params
|
||||||
|
|
||||||
const view: ViewV2 = await sdk.views.get(viewId)
|
const view = await sdk.views.get(viewId)
|
||||||
if (!view) {
|
if (!view) {
|
||||||
ctx.throw(404, `View ${viewId} not found`)
|
ctx.throw(404, `View ${viewId} not found`)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue