Enhance validation in allMappings to prevent duplicate fsSlug entries from PLATFORMS_VERSIONS

This commit is contained in:
zurdi
2025-12-27 11:43:32 +00:00
parent 710bef2446
commit c8d75c90b9

View File

@@ -60,7 +60,7 @@ const allMappings = computed(() => {
// Add all versions (variants)
Object.entries(config.value.PLATFORMS_VERSIONS).forEach(([fsSlug, slug]) => {
// Additional validation: skip if fsSlug somehow exists in both configs
// Additional validation: skip if fsSlug exists in seenFolders
if (!seenFolders.has(fsSlug)) {
mappings.push({ fsSlug, slug, type: "variant" });
seenFolders.add(fsSlug);