Code Works in Preview but not in Published?

No clue how this code runs in Preview or how it was running before…

Import statements must be at the top of the code file. As you can see, you have an error underlined in red . You also don’t even need this import statement as you aren’t using the wix-data API in your code.

The dataset setFilter() function does not return results in the Promise as you have in your code. After the filter is applied, the Repeater will display the newly filtered data. See the setFilter() API for information.