Skip to content

Commit 5e946fb

Browse files
committed
- fix relationsDepth query param
1 parent 9b9e568 commit 5e946fb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/data/store/extract-query-options.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Utils from '../../utils'
22

3-
43
//TODO: refactor me
54
//TODO: does make sense to move this logic into QueryBuilder?
65

@@ -31,10 +30,8 @@ export function extractQueryOptions(options) {
3130
}
3231
}
3332

34-
if (options.relationsDepth) {
35-
if (Utils.isNumber(options.relationsDepth)) {
36-
params.push('relationsDepth=' + Math.floor(options.relationsDepth))
37-
}
33+
if (Utils.isNumber(options.relationsDepth)) {
34+
params.push('relationsDepth=' + options.relationsDepth)
3835
}
3936

4037
if (options.relations) {

0 commit comments

Comments
 (0)