We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 966a381 commit 3f52f2dCopy full SHA for 3f52f2d
client/src/components/search/SearchResults.vue
@@ -44,7 +44,7 @@ const records = ref()
44
45
const router = useRouter()
46
const disableExportLink = computed(() => props.disabled || loading.value)
47
-const exportLink = getExportLink()
+const exportLink = computed(() => getExportLink())
48
49
onMounted(() => loadData())
50
@@ -118,7 +118,11 @@ function getExportLink() {
118
const url = new URL(getApiUrl('modification/csv'))
119
for (const [k, v] of Object.entries(rawParams)) {
120
if (v != null) {
121
- url.searchParams.append(k, v)
+ if (Array.isArray(v)) {
122
+ v.forEach((x) => url.searchParams.append(k, x))
123
+ } else {
124
+ url.searchParams.append(k, v)
125
+ }
126
}
127
128
return url.toString()
0 commit comments