File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed
components/Records/Search/Input/AdvancedSearch
store/AdvancedSearchComponents Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ export default {
276
276
277
277
/**
278
278
* Add advancedSearch selection to query params in
279
- * the URL by creating array of objects into string
279
+ * and create URL by inserting array of objects into string
280
280
*/
281
281
advancedSearchQueryString () {
282
282
if (
@@ -293,7 +293,7 @@ export default {
293
293
this .queryString += params[" identifier" ];
294
294
this .queryString += " =" ;
295
295
if (Array .isArray (params[" value" ])) {
296
- this .queryString += params[" value" ].toString ( );
296
+ this .queryString += params[" value" ].join ( ' + ' );
297
297
} else if (params[" value" ]) {
298
298
this .queryString += params[" value" ];
299
299
}
Original file line number Diff line number Diff line change @@ -21,13 +21,7 @@ const actions = {
21
21
response [ "searchOrganisations" ] &&
22
22
response [ "searchOrganisations" ] . length
23
23
) {
24
- const organisationsList = response [ "searchOrganisations" ] . map (
25
- ( organisation ) => {
26
- let id = organisation . id ,
27
- name = organisation . name ;
28
- return { id, name } ;
29
- }
30
- ) ;
24
+ const organisationsList = response [ "searchOrganisations" ] . map ( ( { name } ) => name ) ;
31
25
commit ( "setSearchOrganisations" , organisationsList ) ;
32
26
}
33
27
Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ export default {
256
256
advancedSearchParams[" value" ] = paramValues[1 ];
257
257
}
258
258
else {
259
- advancedSearchParams[" value" ] = paramValues[1 ].split (" , " );
259
+ advancedSearchParams[" value" ] = paramValues[1 ].split (" + " );
260
260
}
261
261
searchObj[" children" ].push (advancedSearchParams);
262
262
}
You can’t perform that action at this time.
0 commit comments