Skip to content

Commit

Permalink
fix: Scene filters request timeout (xbapps#1805) (xbapps#1806)
Browse files Browse the repository at this point in the history
* fix: Added timeout to scenes/Filters get request (xbapps#1805)

* fix: Added timeout to scenes/Filters get request (xbapps#1805)
  • Loading branch information
SR6Sensation authored Aug 5, 2024
1 parent 037a1b4 commit 402436b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ui/src/store/sceneList.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ const mutations = {

const actions = {
async filters ({ state }) {
state.playlists = await ky.get('/api/playlist').json()
state.filterOpts = await ky.get('/api/scene/filters').json()
state.playlists = await ky.get('/api/playlist', {timeout: 300000}).json()
state.filterOpts = await ky.get('/api/scene/filters', {timeout: 300000}).json()

// Reverse list of release months for display purposes
state.filterOpts.release_month = state.filterOpts.release_month.reverse()
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/scenes/Filters.vue
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ export default {
},
async fetchFilters() {
this.filteredAttributes=['Loading attributes']
ky.get('/api/scene/filters').json().then(data => {
ky.get('/api/scene/filters', {timeout: 300000}).json().then(data => {
this.filteredAttributes=data.attributes
})
}
Expand Down

0 comments on commit 402436b

Please sign in to comment.