Fix not showing pagination of query on production

This commit is contained in:
Hwansoo 2022-01-28 01:31:10 +09:00
parent d8ab715267
commit 35671cb120
1 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,10 @@ export default class QueryFetch extends DataFetch {
if (!datasource?._id) {
return null
}
return await fetchQueryDefinition(datasource._id)
const definition = await fetchQueryDefinition(datasource._id)
// After getting the definition of query, it loses "fields" attribute because of security reason from the server. However, this attribute needs to be inside of defintion for pagination.
definition.fields = datasource.fields
return definition
}
async getData() {