remove unused props from wikipedia action

This commit is contained in:
Gamebrary 2021-02-12 22:11:15 -07:00
parent 097cf34a72
commit 1a3b95b168

View file

@ -19,7 +19,7 @@ export default {
LOAD_WIKIPEDIA_ARTICLE(context, articleTitle) {
return new Promise((resolve, reject) => {
axios.get(`https://en.wikipedia.org/w/api.php?origin=*&action=query&prop=extracts|images|links|linkshere|imageinfo&titles=${articleTitle}&inprop=url&format=json`)
axios.get(`https://en.wikipedia.org/w/api.php?origin=*&action=query&prop=extracts&titles=${articleTitle}&format=json`)
.then(({ data: { query } }) => {
const pageIds = Object.keys(query.pages);