« get me outta code hell

content: gCTChronologySection: lenient type validation - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-07-10 11:50:29 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-07-10 11:50:29 -0300
commit3b2b97b94814da9c71552b7fd2bf192d433199be (patch)
tree6657aa5074077720eed416e02436a8950f200c1f
parent38d67eb60e9c5bd73ee1887a55bb132406ed0217 (diff)
content: gCTChronologySection: lenient type validation
-rw-r--r--src/content/dependencies/generateContributionTooltipChronologySection.js13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/content/dependencies/generateContributionTooltipChronologySection.js b/src/content/dependencies/generateContributionTooltipChronologySection.js
index 9f419a66..5834665d 100644
--- a/src/content/dependencies/generateContributionTooltipChronologySection.js
+++ b/src/content/dependencies/generateContributionTooltipChronologySection.js
@@ -49,18 +49,7 @@ export default {
   }),
 
   slots: {
-    kind: {
-      validate: v =>
-        v.is(
-          'album',
-          'bannerArt',
-          'coverArt',
-          'flash',
-          'track',
-          'trackArt',
-          'trackContribution',
-          'wallpaperArt'),
-    },
+    kind: {type: 'string'},
   },
 
   generate: (data, relations, slots, {html, language}) =>