Code Works in Preview but not in Published?

The dataset being filtered causes a refresh of the Repeater, and the expand merely displays (expands) the Repeater.

Glad you got it worked out.