Skip to content

Commit

Permalink
fix: fix issue #8 bulbasaur missing
Browse files Browse the repository at this point in the history
  • Loading branch information
mariinkys committed Oct 12, 2024
1 parent 950ad3c commit 97ffca8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,10 +357,11 @@ impl Application for StarryDex {
Message::CompletedFirstRun(config, pokemon_list) => {
self.config = config;

//self.pokemon_list = pokemon_list; //TODO: This is to temporarly fix an error that makes a empty pokemon to appear on the first position of the btree
let mut pokemon_list = pokemon_list;
pokemon_list.pop_first();
self.pokemon_list = pokemon_list;
self.pokemon_list = pokemon_list;
//TODO: Remove this. This is to temporarly fixed an error that makes a empty pokemon to appear on the first position of the btree
//let mut pokemon_list = pokemon_list;
//pokemon_list.pop_first();
//self.pokemon_list = pokemon_list;

self.filtered_pokemon_list = self.pokemon_list.values().cloned().collect();
self.current_page_status = PageStatus::Loaded;
Expand Down

0 comments on commit 97ffca8

Please sign in to comment.