Code Works in Preview but not in Published?

Old school assembly coding - such as IBM 360 assembler?

And, I did help. As I said…

Delete the import statement as it’s not needed and is causing an error.
Delete the line: $w(“#repeater1”).data = results.items; which is also an error.
As you can see in your screenshot, items is underlined in red since it doesn’t exist. There is no variable results returned in this Promise.

Hopefully that should fix things up for you (assuming that nothing else is wrong).