This PR fixes a crash in movepool import if we try to import a movepool with a form other than 0 because there has been confusion between the id of the form and its index. (the usual bug...)
In practice, it's with mega evolutions that have form equal to or greater than 30 that the problem occurs. (because the index is different to the form id)
Bonus: a default value has been added to Select to avoid opening the editor with "Pokémon deleted".
Tests to perform
[x] The user can import a movepool (from basic, regional or mega evolution form to all available forms)
Description
This PR fixes a crash in movepool import if we try to import a movepool with a form other than 0 because there has been confusion between the id of the form and its index. (the usual bug...)
In practice, it's with mega evolutions that have form equal to or greater than 30 that the problem occurs. (because the index is different to the form id)
Bonus: a default value has been added to Select to avoid opening the editor with "Pokémon deleted".
Tests to perform
Error
Discord: https://discord.com/channels/143824995867557888/1255523750078713979