summaryrefslogtreecommitdiff
path: root/js/Feeds.js
diff options
context:
space:
mode:
authorsupahgreg <supahgreg@users.noreply.github.com>2025-10-14 03:29:37 +0000
committersupahgreg <supahgreg@users.noreply.github.com>2025-10-14 03:29:37 +0000
commit362e2dc28c9d28bc7644df6694b4de78a116da37 (patch)
tree12d7f7b0e6412e448768dc7a5ab92c1c97d5742c /js/Feeds.js
parent602d79c87ee65a4907656a4c2bbcd02cb13e17a0 (diff)
Fix some more issues related to ESLint 'eqeqeq' changes.
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({