Fix error being thrown when attempting to change query parameters (#9782)

This commit is contained in:
Andrew Kingston 2023-02-23 08:09:18 +00:00 committed by GitHub
parent fcaf03fbb8
commit 8047a0fc4c
1 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,12 @@
x => x =>
x._id !== BUDIBASE_INTERNAL_DB_ID && x.type !== BUDIBASE_DATASOURCE_TYPE x._id !== BUDIBASE_INTERNAL_DB_ID && x.type !== BUDIBASE_DATASOURCE_TYPE
) )
// Ensure query params exist so they can be bound
$: {
if (!parameters.queryParams) {
parameters.queryParams = {}
}
}
function fetchQueryDefinition(query) { function fetchQueryDefinition(query) {
const source = $datasources.list.find( const source = $datasources.list.find(