Skip to content

Commit a9ed53a

Browse files
committed
Fix refresh btn issue
1 parent 728dbda commit a9ed53a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Widgets/Navbar.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ public function add($element)
6767
*/
6868
public function render($part = 'right')
6969
{
70-
if (!isset($this->elements[$part]) || $this->elements[$part]->isEmpty()) {
71-
return '';
72-
}
73-
7470
if ($part == 'right') {
7571
$this->right(new RefreshButton());
7672
}
7773

74+
if (!isset($this->elements[$part]) || $this->elements[$part]->isEmpty()) {
75+
return '';
76+
}
77+
7878
return $this->elements[$part]->map(function ($element) {
7979
if ($element instanceof Htmlable) {
8080
return $element->toHtml();

0 commit comments

Comments
 (0)