diff --git a/src/app/portal/components/results/publications2/publications2.component.ts b/src/app/portal/components/results/publications2/publications2.component.ts index f95adfec0..3f411dde1 100644 --- a/src/app/portal/components/results/publications2/publications2.component.ts +++ b/src/app/portal/components/results/publications2/publications2.component.ts @@ -629,8 +629,15 @@ function splitFields(obj: Record): Record = {}; for (const key in obj) { - const value = obj[key]; - result[key] = splitParams(value); + // console log key and value + // console.log(key, obj[key]); + + if (key === 'q') { + result[key] = [obj[key] as string]; + } else { + const value = obj[key]; + result[key] = splitParams(value); + } } return result;