fixed delete button route issue

This commit is contained in:
Cihan Şentürk 2023-10-30 16:40:04 +03:00 committed by GitHub
parent d0ad2bbfca
commit f45ca23cd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -240,7 +240,13 @@ class DeleteButton extends Component
$page = '';
if (! empty($this->route)) {
$paths = explode('.', $this->route);
if (is_array($this->route)) {
$string = $this->route[0];
} else {
$string = $this->route;
}
$paths = explode('.', $string);
$page = $paths[0];
} elseif (! empty($this->url)) {