1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

fixing cypress test.

This commit is contained in:
mike12345567 2021-02-02 14:55:52 +00:00
parent d09704735a
commit ca66433aa2

View file

@ -190,7 +190,14 @@ exports.fetchView = async function(ctx) {
if (!calculation) {
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)
}