Fix discovery query text highlight throwing error on empty query
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
</label>
|
||||
<div class="mt-1">
|
||||
<text-highlight
|
||||
:queries="[$route.query.query]"
|
||||
:queries="query"
|
||||
highlight-style="padding: 0 0.05rem;"
|
||||
>
|
||||
{{ value }}
|
||||
|
||||
@@ -33,7 +33,7 @@ export default {
|
||||
},
|
||||
|
||||
query () {
|
||||
return this.$route.query.query || ''
|
||||
return [this.$route.query.query || '']
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user