From 402436b95771db391bc3685613d6fde1bafef8c0 Mon Sep 17 00:00:00 2001 From: SR6Sensation Date: Mon, 5 Aug 2024 21:36:32 +0300 Subject: [PATCH] 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) --- ui/src/store/sceneList.js | 4 ++-- ui/src/views/scenes/Filters.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/store/sceneList.js b/ui/src/store/sceneList.js index 63a9148c9..3d610d1ef 100644 --- a/ui/src/store/sceneList.js +++ b/ui/src/store/sceneList.js @@ -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() diff --git a/ui/src/views/scenes/Filters.vue b/ui/src/views/scenes/Filters.vue index 26202f251..35c5d6dad 100644 --- a/ui/src/views/scenes/Filters.vue +++ b/ui/src/views/scenes/Filters.vue @@ -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 }) }