Fix issue with searching for short strings
Этот коммит содержится в:
@@ -15,13 +15,16 @@ function getStateFromStores() {
|
|||||||
const results = SearchStore.getSearchResults();
|
const results = SearchStore.getSearchResults();
|
||||||
|
|
||||||
const channels = new Map();
|
const channels = new Map();
|
||||||
const channelIds = results.order.map((postId) => results.posts[postId].channel_id);
|
|
||||||
for (const id of channelIds) {
|
|
||||||
if (channels.has(id)) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
channels.set(id, ChannelStore.get(id));
|
if (results && results.order) {
|
||||||
|
const channelIds = results.order.map((postId) => results.posts[postId].channel_id);
|
||||||
|
for (const id of channelIds) {
|
||||||
|
if (channels.has(id)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
channels.set(id, ChannelStore.get(id));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user