client/js/views: fix pool links for deleted pools

Fixes #333
This commit is contained in:
Shyam Sunder 2020-07-08 17:28:20 -04:00
parent b037ce80c3
commit 13e2888ae4

View file

@ -235,7 +235,9 @@ function makeTagLink(name, includeHash, includeCount, tag) {
function makePoolLink(id, includeHash, includeCount, pool, name) {
const category = pool ? pool.category : "unknown";
let text = misc.getPrettyName(name ? name : pool.names[0]);
let text = misc.getPrettyName(
name ? name : pool ? pool.names[0] : "unknown"
);
if (includeHash === true) {
text = "#" + text;
}