summaryrefslogtreecommitdiff
path: root/js/Feeds.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Feeds.js')
-rw-r--r--js/Feeds.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/Feeds.js b/js/Feeds.js
index f99d86943..790b64dd4 100644
--- a/js/Feeds.js
+++ b/js/Feeds.js
@@ -334,7 +334,9 @@ const Feeds = {
setActive: function(id, is_cat) {
console.log('setActive', id, is_cat);
- id = parseInt(id);
+ // id might be a tag string, so check if we have something int-ish
+ if (Number.isInteger(Number(id)))
+ id = parseInt(id);
window.requestIdleCallback(() => {
App.Hash.set({