We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b9e568 commit 5e946fbCopy full SHA for 5e946fb
src/data/store/extract-query-options.js
@@ -1,6 +1,5 @@
1
import Utils from '../../utils'
2
3
-
4
//TODO: refactor me
5
//TODO: does make sense to move this logic into QueryBuilder?
6
@@ -31,10 +30,8 @@ export function extractQueryOptions(options) {
31
30
}
32
33
34
- if (options.relationsDepth) {
35
- if (Utils.isNumber(options.relationsDepth)) {
36
- params.push('relationsDepth=' + Math.floor(options.relationsDepth))
37
- }
+ if (Utils.isNumber(options.relationsDepth)) {
+ params.push('relationsDepth=' + options.relationsDepth)
38
39
40
if (options.relations) {
0 commit comments