diff --git a/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte b/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte index 37c5fce61e..0f78bfffcc 100644 --- a/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte +++ b/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte @@ -215,8 +215,8 @@ if (query && !query.fields.bodyType) { query.fields.bodyType = "none" } - if (query && !query.pagination) { - query.pagination = {} + if (query && !query.fields.pagination) { + query.fields.pagination = {} } dynamicVariables = restUtils.variablesToObject(datasource) }) @@ -296,34 +296,34 @@