Merge pull request #14804 from Budibase/fix-data-provider-filtering

Don't extend dataprovider queries when no extensions are in use
This commit is contained in:
Andrew Kingston 2024-10-17 13:57:03 +01:00 committed by GitHub
commit 2976e605e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -126,6 +126,9 @@
}
const extendQuery = (defaultQuery, extensions) => {
if (!Object.keys(extensions).length) {
return defaultQuery
}
const extended = {
[LogicalOperator.AND]: {
conditions: [