We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fa2035 commit 6b617f8Copy full SHA for 6b617f8
client/components/Windows/SearchResults.vue
@@ -129,13 +129,14 @@ export default defineComponent({
129
const oldScrollTop = ref(0);
130
const oldChatHeight = ref(0);
131
132
- const search = computed(() => store.state.messageSearchResults);
133
const messages = computed(() => {
134
- if (!search.value) {
+ const results = store.state.messageSearchResults?.results;
+
135
+ if (!results) {
136
return [];
137
}
138
- return search.value.results;
139
+ return results;
140
});
141
142
const chan = computed(() => {
@@ -307,7 +308,6 @@ export default defineComponent({
307
308
loadMoreButton,
309
messages,
310
moreResultsAvailable,
- search,
311
network,
312
channel,
313
route,
0 commit comments