Fix not showing pagination of query on production
This commit is contained in:
parent
a3e5c5af7f
commit
5b567300ec
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue