diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-11-28 23:25:05 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-11-28 23:25:05 -0400 |
commit | 690a7b53a72ac71f9f76260fa50c634566c4e984 (patch) | |
tree | 841653cf0e474c6edd437ec36884f2130b5b7b43 /src/misc-templates.js | |
parent | ae9dba60c4bbb327b402c500cc042922a954de74 (diff) |
divide things.js into modular files (hilariously)
Diffstat (limited to 'src/misc-templates.js')
-rw-r--r-- | src/misc-templates.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc-templates.js b/src/misc-templates.js index 0a33648c..83aae190 100644 --- a/src/misc-templates.js +++ b/src/misc-templates.js @@ -2,7 +2,7 @@ // These are made available right on a page spec's ({wikiData, language, ...}) // args object! -import {Track, Album} from './data/things.js'; +import T from './data/things/index.js'; import { empty, @@ -173,7 +173,7 @@ function unbound_generateChronologyLinks(currentThing, { // right function to use here. const args = [thingsUnsorted, {getDate: (t) => t[dateKey]}]; const things = ( - thingsUnsorted.every(t => t instanceof Album || t instanceof Track) + thingsUnsorted.every(t => t instanceof T.Album || t instanceof T.Track) ? sortAlbumsTracksChronologically(...args) : sortChronologically(...args)); |