mirror of
https://github.com/Ratstail91/sineQL.git
synced 2025-11-29 02:34:28 +11:00
Bugfix in handler
This commit is contained in:
@@ -84,6 +84,11 @@ const handler = {
|
||||
//return all pokemon fields after filtering
|
||||
const fields = scalars.map(s => s.name);
|
||||
return filteredPokemon.map(p => {
|
||||
//BUGFIX
|
||||
if (!p.base_stats) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const ret = {};
|
||||
|
||||
if (fields.includes('hp')) {
|
||||
|
||||
Reference in New Issue
Block a user