[PR #575] [MERGED] Fix TypeError on Logout #1459

Closed
opened 2026-04-24 23:58:38 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf-app/pull/575
Author: @lkiesow
Created: 2/11/2023
Status: Merged
Merged: 2/12/2023
Merged by: @advplyr

Base: masterHead: typeerror


📝 Commits (1)

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 store/user.js (+1 -1)

📄 Description

Clicking on “logout”, you get the following TypeError:

TypeError: state.user is null
    getUserBookmarksForItem user.js:38
    bookmarks AudioPlayerContainer.vue:45
    VueJS 4
    render AudioPlayerContainer.vue:11
    VueJS 13
    logout user.js:115
    wrappedMutationHandler vuex.esm.js:844
    commitIterator vuex.esm.js:466
    commit vuex.esm.js:465
    _withCommit vuex.esm.js:624
    commit vuex.esm.js:464
    boundCommit vuex.esm.js:409
    _callee$ account.vue:67
    tryCatch pdf_viewer.js:1329
    invoke pdf_viewer.js:1502
    defineIteratorMethods pdf_viewer.js:1372
    Babel 10
    logout account.vue:56
    VueJS 4
    click Btn.vue:65
    VueJS 33
client.js:103

This patch fixes the problem by checking for null values.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf-app/pull/575 **Author:** [@lkiesow](https://github.com/lkiesow) **Created:** 2/11/2023 **Status:** ✅ Merged **Merged:** 2/12/2023 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `typeerror` --- ### 📝 Commits (1) - [`5f6c1f5`](https://github.com/advplyr/audiobookshelf-app/commit/5f6c1f57b029c9556c4590ca3265e543e44d9c6e) Fix TypeError on Logout ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `store/user.js` (+1 -1) </details> ### 📄 Description Clicking on “logout”, you get the following TypeError: ``` TypeError: state.user is null getUserBookmarksForItem user.js:38 bookmarks AudioPlayerContainer.vue:45 VueJS 4 render AudioPlayerContainer.vue:11 VueJS 13 logout user.js:115 wrappedMutationHandler vuex.esm.js:844 commitIterator vuex.esm.js:466 commit vuex.esm.js:465 _withCommit vuex.esm.js:624 commit vuex.esm.js:464 boundCommit vuex.esm.js:409 _callee$ account.vue:67 tryCatch pdf_viewer.js:1329 invoke pdf_viewer.js:1502 defineIteratorMethods pdf_viewer.js:1372 Babel 10 logout account.vue:56 VueJS 4 click Btn.vue:65 VueJS 33 client.js:103 ``` This patch fixes the problem by checking for `null` values. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-24 23:58:38 +02:00
adam closed this issue 2026-04-24 23:58:38 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#1459