mirror of
https://github.com/koel/koel.git
synced 2026-04-26 09:15:59 +03:00
[GH-ISSUE #1679] Cannot read properties of null #921
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#921
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NikolayTolkovanov-front on GitHub (May 13, 2023).
Original GitHub issue: https://github.com/koel/koel/issues/1679
Describe the bug
When reloading the window, sometimes an error may appear: "Cannot read properties of null (reading 'name')"
To reproduce
Steps to reproduce the behavior:
Environment
Solve
This error most likely appears due to the fact that during initialization in "@/App.vue"
await commonStore.init()an asynchronous request for data is made, the result comes after other components use the properties of the object from "userStore.state".I replaced in "ProfileAvatar.vue"
<img :alt="Avatar of ${currentUser.name}" :src="currentUser.avatar">with<img :alt="Avatar of ${currentUser?.name}" :src="currentUser?.avatar">