How to stop being directed to admin.php after sending request to admin-ajax.php

As suspected, WordPress was treating the button as type="submit" fixed by doing:

<button type="button" onClick="addProperty()">Add property</button>