Skip to content

Commit 402436b

Browse files
authored
fix: Scene filters request timeout (#1805) (#1806)
* fix: Added timeout to scenes/Filters get request (#1805) * fix: Added timeout to scenes/Filters get request (#1805)
1 parent 037a1b4 commit 402436b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ui/src/store/sceneList.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ const mutations = {
150150

151151
const actions = {
152152
async filters ({ state }) {
153-
state.playlists = await ky.get('/api/playlist').json()
154-
state.filterOpts = await ky.get('/api/scene/filters').json()
153+
state.playlists = await ky.get('/api/playlist', {timeout: 300000}).json()
154+
state.filterOpts = await ky.get('/api/scene/filters', {timeout: 300000}).json()
155155

156156
// Reverse list of release months for display purposes
157157
state.filterOpts.release_month = state.filterOpts.release_month.reverse()

ui/src/views/scenes/Filters.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ export default {
578578
},
579579
async fetchFilters() {
580580
this.filteredAttributes=['Loading attributes']
581-
ky.get('/api/scene/filters').json().then(data => {
581+
ky.get('/api/scene/filters', {timeout: 300000}).json().then(data => {
582582
this.filteredAttributes=data.attributes
583583
})
584584
}

0 commit comments

Comments
 (0)