mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 10:32:57 +01:00
Enhance validation in allMappings to prevent duplicate fsSlug entries from PLATFORMS_VERSIONS
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user