mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
The `scan:scanning_rom` socket emit strips `sibling_roms` from the rom payload, so a freshly-scanned rom can reach SiblingBadge with the field undefined (despite the schema typing it as required). Reading `.length`/`.map` then threw `TypeError: Cannot read properties of undefined (reading 'length')`, crashing the gallery during a scan while "Group ROMs" was enabled. Default `sibling_roms` to an empty list (a `siblings` computed). REST payloads always include it (possibly empty), so only the socket path was affected. Closes #3567 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>