mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-22 03:13:06 +00:00
use empty list instead of null for evolution details (#191)
This commit is contained in:
parent
254937c673
commit
ba7cfafbc4
1 changed files with 1 additions and 1 deletions
|
@ -2872,7 +2872,7 @@ class EvolutionChainDetailSerializer(serializers.ModelSerializer):
|
|||
|
||||
entry['is_baby'] = species['is_baby']
|
||||
entry['species'] = summary_data[index]
|
||||
entry['evolution_details'] = evolution_data or None
|
||||
entry['evolution_details'] = evolution_data or []
|
||||
entry['evolves_to'] = []
|
||||
|
||||
# Keep track of previous entries for complex chaining
|
||||
|
|
Loading…
Reference in a new issue