@@ -39,8 +39,9 @@ |
||
39 | 39 | |
40 | 40 | $status = $this->form()->destroy($id); |
41 | 41 | |
42 | - if ($type == 'non-ajax') |
|
43 | - return $status; |
|
42 | + if ($type == 'non-ajax') { |
|
43 | + return $status; |
|
44 | + } |
|
44 | 45 | |
45 | 46 | if ($status) { |
46 | 47 | $data = [ |