diff --git a/templates/element/genericElements/IndexTable/Fields/toggle.php b/templates/element/genericElements/IndexTable/Fields/toggle.php index 4064c8f..b31d9f1 100644 --- a/templates/element/genericElements/IndexTable/Fields/toggle.php +++ b/templates/element/genericElements/IndexTable/Fields/toggle.php @@ -84,7 +84,7 @@ function submitForm(api, url) { const reloadUrl = 'Url->build(['action' => 'index']) ?>' - return api.fetchAndPostForm(url, {}) + return api.fetchAndPostForm(url, {}, false, true) .then(() => { const isChecked = $('#').prop('checked')