Browse Source

fixing cypress test.

pull/1067/head
mike12345567 5 years ago
parent
commit
a367460fbc
  1. 9
      packages/server/src/api/controllers/row.js

9
packages/server/src/api/controllers/row.js

@ -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)
}

Loading…
Cancel
Save