Add this line before the for loop:
let options = [];
I don’t know what the rest of the code looks like, but this might help.
Add this line before the for loop:
let options = [];
I don’t know what the rest of the code looks like, but this might help.