aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-12-03 23:08:33 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2023-12-03 23:09:16 +0100
commitd14b3512082f450292463d7c77f26a22ab12b7de (patch)
treebb897a5b8df8ee170943013bb3e9b7f16bc9a6e0 /core
parent4983a35e1f7a176cc94fabea435552e0c73ec6bd (diff)
downloadnextcloud-server-d14b3512082f450292463d7c77f26a22ab12b7de.tar.gz
nextcloud-server-d14b3512082f450292463d7c77f26a22ab12b7de.zip
fix: Adjust code to be Vue 2.7 compatible as `key` on `<template>` is Vue3 only
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'core')
-rw-r--r--core/src/views/UnifiedSearch.vue11
1 files changed, 6 insertions, 5 deletions
diff --git a/core/src/views/UnifiedSearch.vue b/core/src/views/UnifiedSearch.vue
index 198e952d9c9..e87d7dc6a63 100644
--- a/core/src/views/UnifiedSearch.vue
+++ b/core/src/views/UnifiedSearch.vue
@@ -90,11 +90,12 @@
</template>
<!-- Grouped search results -->
- <template v-for="({list, type}, typesIndex) in orderedResults" v-else :key="type">
- <h2 class="unified-search__results-header">
- {{ typesMap[type] }}
- </h2>
- <ul class="unified-search__results"
+ <template v-for="({list, type}, typesIndex) in orderedResults" v-else>
+ <h2 :key="type" class="unified-search__results-header">
+ {{ typesMap[type] }}
+ </h2>
+ <ul :key="type"
+ class="unified-search__results"
:class="`unified-search__results-${type}`"
:aria-label="typesMap[type]">
<!-- Search results -->