Skip to content

Commit b0e745b

Browse files
committed
fix(apply): correctly check for multiple indexes in one case
1 parent adf97a4 commit b0e745b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/apply/apply.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,7 @@ func insertNavLink(str string, appNameArray string) string {
370370
},
371371
func(index int, submatches ...string) string {
372372
switch index {
373-
case 0:
374-
case 1:
373+
case 0, 1:
375374
return fmt.Sprintf("%s,Spicetify._renderNavLinks([%s], true)]", submatches[1], appNameArray)
376375
case 2:
377376
return fmt.Sprintf("%s[%s%s,Spicetify._renderNavLinks([%s], true)].flat()", submatches[1], submatches[2], submatches[3], appNameArray)

0 commit comments

Comments
 (0)