« get me outta code hell

fix sub-groups not loading timestamps - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2021-08-06 17:07:18 -0300
committer(quasar) nebula <towerofnix@gmail.com>2021-08-06 17:08:01 -0300
commit450d751b76574584b1bce70c2108e7fd86510c8f (patch)
tree905d87b9761e88fd0849a1e31cc5b17044108b7a
parent341a34320e89ed1ebc29c5a9c8675d18dd02e185 (diff)
fix sub-groups not loading timestamps
-rw-r--r--ui.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui.js b/ui.js
index 49308fe..f03c24b 100644
--- a/ui.js
+++ b/ui.js
@@ -1106,6 +1106,10 @@ class AppElement extends FocusElement {
 
     // There's no parallelization here, but like, whateeeever.
     for (const item of grouplike.items) {
+      if (!isTrack(item)) {
+        continue
+      }
+
       if (this.timestampDictionary.has(item)) {
         continue
       }