mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-15 09:46:06 +01:00
Prevent empty AJAX response message from appearing
This commit is contained in:
@@ -283,6 +283,10 @@ $(function () {
|
||||
data: data,
|
||||
toastErrors: true,
|
||||
success: function (response) {
|
||||
if (!response) {
|
||||
return;
|
||||
}
|
||||
|
||||
var grav = response.payload.grav,
|
||||
installed = response.payload.installed,
|
||||
resources = response.payload.resources,
|
||||
|
||||
Reference in New Issue
Block a user