Fix:Check network connection before redirecting local item to server item #958

This commit is contained in:
advplyr 2023-11-25 12:28:28 -06:00
parent 5c60cd136c
commit 257a1ceb51

View file

@ -169,7 +169,7 @@ export default {
libraryItem = await app.$db.getLocalLibraryItem(libraryItemId)
console.log('Got lli', libraryItemId)
// If library item is linked to the currently connected server then redirect to the page using the server library item id
if (libraryItem?.libraryItemId && libraryItem?.serverAddress === store.getters['user/getServerAddress']) {
if (libraryItem?.libraryItemId && libraryItem?.serverAddress === store.getters['user/getServerAddress'] && store.state.networkConnected) {
return redirect(`/item/${libraryItem.libraryItemId}`)
}
} else if (store.state.user.serverConnectionConfig) {