mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Don’t fetch lists if query is empty
This commit is contained in:
parent
0725a82b55
commit
c5e8ceb15d
1 changed files with 3 additions and 2 deletions
|
|
@ -158,9 +158,10 @@ export default {
|
||||||
// console.log('$event', $event)
|
// console.log('$event', $event)
|
||||||
this.query = $event
|
this.query = $event
|
||||||
|
|
||||||
// If fetched lists have alraedy been loaded in
|
// If fetched lists have already been loaded in
|
||||||
|
// OR if there's no query
|
||||||
// then stop
|
// then stop
|
||||||
if (this.fetchedAppList.length !== 0) return
|
if (this.fetchedAppList.length !== 0 || this.query.trim().length === 0) return
|
||||||
|
|
||||||
const fetchedListUrls = [
|
const fetchedListUrls = [
|
||||||
'/game-list.json',
|
'/game-list.json',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue