Fixing issue with using 'ta' in view name.

This commit is contained in:
mike12345567 2021-09-02 17:49:21 +01:00
parent 2148bf6da4
commit b17e9aa5e4
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ exports.fetchView = async ctx => {
const viewName = ctx.params.viewName const viewName = ctx.params.viewName
// if this is a table view being looked for just transfer to that // if this is a table view being looked for just transfer to that
if (viewName.includes(DocumentTypes.TABLE)) { if (viewName.startsWith(DocumentTypes.TABLE)) {
ctx.params.tableId = viewName ctx.params.tableId = viewName
return exports.fetch(ctx) return exports.fetch(ctx)
} }