Skip to content

Commit

Permalink
fix(homeConfig): check if uri exists too
Browse files Browse the repository at this point in the history
  • Loading branch information
rxri committed Sep 8, 2024
1 parent e2fd1e6 commit 8b7596f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jsHelper/homeConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SpicetifyHomeConfig = {};
const stickSections = [];
const lowSections = [];
for (const uri of stickList) {
const index = sections.findIndex((a) => a?.uri === uri || a?.item.uri === uri);
const index = sections.findIndex((a) => a?.uri === uri || a?.item?.uri === uri);
if (index !== -1) {
const item = sections[index];
const uri = item.item.uri || item.uri;
Expand All @@ -31,7 +31,7 @@ SpicetifyHomeConfig = {};
}
}
for (const uri of lowList) {
const index = sections.findIndex((a) => a?.uri === uri || a?.item.uri === uri);
const index = sections.findIndex((a) => a?.uri === uri || a?.item?.uri === uri);
if (index !== -1) {
const item = sections[index];
const uri = item.item.uri || item.uri;
Expand Down

0 comments on commit 8b7596f

Please sign in to comment.