publish: fix onclick method

generated from commit 03e74ec32b10449e6e3d890f7e5b923e93ff80f8