Names not displayed for torrents that have labels
Shados opened this issue · comments
This change in the most-recent commit broke the display of names for any torrents labels:
Lines 1600 to 1608 in 2e72390
Specifically, the return = "";
on line 1605 results in blanking out the name column for any torrents that have one or more labels set, due to updateElement()
seeing that the ""
returned from this doesn't match the cell.innerHTML
, wherein it replaces the cell contents with ""
. Mixing imperative and functional behaviour in a single function has a tendency to lead to this kind of problem.
Without re-structuring the code, the simplest fix is to just replace line 1605 with return cell.innerHTML;
, but this is a bit cursed.