Skip to content

Commit

Permalink
fix: 白屏
Browse files Browse the repository at this point in the history
  • Loading branch information
maotoumao committed Dec 23, 2023
1 parent dd5c5ed commit e6e1c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/core/music-sheet/backend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export async function queryAllSheets() {
export async function queryAllStarredSheets() {
try {
starredMusicSheets = await getUserPerferenceIDB("starredMusicSheets");
return starredMusicSheets;
return starredMusicSheets ?? [];
} catch {
return [];
}
Expand Down

0 comments on commit e6e1c26

Please sign in to comment.