Fixed issue where no projection is applied when there's no presets thus affecting performane
This commit is contained in:
1 parent
c08fb47f18
commit
28f63e8c96
2 files changed
+2
-1
No files matched your search
@@ -83,6 +83,7 @@ projection = (query, proj) ->
|
||||
# optimize projection by removing overlaps
|
||||
optimizeProjection = (obj) ->
|
||||
keys = Object.keys(obj).sort()
|
||||
return if keys.length <= 1
|
||||
for i in [1 ... keys.length]
|
||||
a = keys[i-1]
|
||||
b = keys[i]
|
||||
|
||||
Reference in new issue
Block a user