fixing cypress test.
This commit is contained in:
parent
d8b6faa5f2
commit
a367460fbc
|
@ -190,7 +190,14 @@ exports.fetchView = async function(ctx) {
|
||||||
|
|
||||||
if (!calculation) {
|
if (!calculation) {
|
||||||
response.rows = response.rows.map(row => row.doc)
|
response.rows = response.rows.map(row => row.doc)
|
||||||
const table = await db.get(ctx.params.tableId)
|
let table
|
||||||
|
try {
|
||||||
|
table = await db.get(ctx.params.tableId)
|
||||||
|
} catch (err) {
|
||||||
|
table = {
|
||||||
|
schema: {},
|
||||||
|
}
|
||||||
|
}
|
||||||
ctx.body = await enrichRows(appId, table, response.rows)
|
ctx.body = await enrichRows(appId, table, response.rows)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue