onclick - submit data and reload the page - how to?

there is a syntax mistake in the code above:
use this
.then ( ( ) => {
instead of this
.then ( => {

5 Likes