Preact: Fix pressing Enter in teambuilder with invalid results (#2451)

This commit is contained in:
Dieter Reinert 2025-06-05 04:54:27 +02:00 committed by GitHub
parent 3dd9882a9f
commit df0188bbfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -251,6 +251,9 @@ class TeamEditorState extends PSModel {
return this.dex.moves.get(moveid).name + '|' + slot;
}
return this.dex.moves.get(result[1]).name;
case 'html':
case 'header':
return '';
default:
return result[1];
}