Update:Library folder browser to not save folders from request #1371

This commit is contained in:
advplyr 2023-01-07 15:31:51 -06:00
parent 5a26704c32
commit ddabd0ee75

View File

@ -70,8 +70,8 @@ export const actions = {
}, },
loadFolders({ state, commit }) { loadFolders({ state, commit }) {
if (state.folders.length) { if (state.folders.length) {
var lastCheck = Date.now() - state.folderLastUpdate const lastCheck = Date.now() - state.folderLastUpdate
if (lastCheck < 1000 * 60 * 10) { // 10 minutes if (lastCheck < 1000 * 5) { // 5 seconds
// Folders up to date // Folders up to date
return state.folders return state.folders
} }