diff --git a/resources/assets/js/dashboard.js b/resources/assets/js/dashboard.js index 5ec122d..bb2151a 100644 --- a/resources/assets/js/dashboard.js +++ b/resources/assets/js/dashboard.js @@ -339,12 +339,7 @@ function editItemInit() { // functionality to run on success const returnSuccess = function() { hideLoadingModal(); - - if (operation === "create") { - window.location.href = "/" + location.href.replace(/^[^:]*:\/\/[^\/]*\//, "").replace(/\/[^/]*$/, "") + "/" + row_id; - } else { - window.location.href = "/dashboard/" + model; - } + window.location.href = "/dashboard/" + model; }; // add the image from the image upload box for image-upload class elements