Skip to content
Snippets Groups Projects
Commit 87a3060e authored by esikkala's avatar esikkala
Browse files

Add constrainSelf to helpers

parent 227ba3f3
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ export const stateToUrl = ({
sortBy = null,
sortDirection = null,
resultFormat = null,
constrainSelf = null,
groupBy = null
}) => {
const params = {}
......@@ -18,6 +19,7 @@ export const stateToUrl = ({
if (sortBy !== null) { params.sortBy = sortBy }
if (sortDirection !== null) { params.sortDirection = sortDirection }
if (resultFormat !== null) { params.resultFormat = resultFormat }
if (constrainSelf !== null) { params.constrainSelf = constrainSelf }
if (groupBy !== null) { params.groupBy = groupBy }
if (facets !== null) {
const constraints = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment