Skip to content

Commit bed1249

Browse files
committed
copy array before reverse to not mutate
1 parent cb56efb commit bed1249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/initialize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const initializeQuestions = [
4040
name: 'year',
4141
message: festiveStyle('What year of advent of code are you doing?'),
4242
prefix: festiveEmoji(),
43-
choices: getConfigValue('aoc.validation.years')?.reverse(),
43+
choices: [...getConfigValue('aoc.validation.years')].reverse(),
4444
loop: false,
4545
},
4646
authTokenQuestion,

0 commit comments

Comments
 (0)