mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 11:21:16 +02:00
Fix
This commit is contained in:
@@ -8,7 +8,8 @@ module.exports = class MoveStore extends Collection {
|
||||
}
|
||||
|
||||
async fetch(query) {
|
||||
query = this.makeSlug(query);
|
||||
if (this.has(query)) return this.get(query);
|
||||
query = this.makeSlug(query.toString());
|
||||
if (!query) return null;
|
||||
const found = this.find(pokemon => pokemon.slug === query);
|
||||
if (found) return found;
|
||||
|
||||
Reference in New Issue
Block a user