Skip to content

Commit

Permalink
Merge pull request #64 from awcodes/fix/fallback-create-another
Browse files Browse the repository at this point in the history
Fix: fallback for create another
  • Loading branch information
awcodes authored Nov 7, 2024
2 parents d5c7ddc + 5da6a27 commit ff0c421
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Components/QuickCreateMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ public function getActions(): array
$canCreateAnother = QuickCreatePlugin::get()->canCreateAnother();

if ($canCreateAnother === null) {
$canCreateAnother = true;

if ($r->hasPage('create')) {
$canCreateAnother = App::make($r->getPages()['create']->getPage())::canCreateAnother();
} else {
Expand Down

0 comments on commit ff0c421

Please sign in to comment.