Fix histories shared with me message

Fixes https://github.com/galaxyproject/galaxy/issues/10285
This commit is contained in:
mvdbeek
2020-09-24 18:04:47 +02:00
parent b66afca107
commit 9c1426d6bb
+1 -1
View File
@@ -134,7 +134,7 @@ export default {
// No results.
const filters = options.filters;
const searchTerm = filters["free-text-search"] || "";
const tags = filters.tags !== "All" ? `tags:${filters.tags} ` : "";
const tags = filters.tags && filters.tags !== "All" ? `tags:${filters.tags} ` : "";
const name = filters.name && filters.name !== "All" ? `name:${filters.name}` : "";
const searchMsg = searchTerm || `${tags}${name}`;
const noItemsMsg = searchMsg ? `No matching entries found for <strong>${searchMsg}</strong>` : "No items";