Skip to content

Commit

Permalink
Copy the comment from 11ddae4
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
brandonkelly committed Jun 17, 2024
1 parent 798f3c1 commit abc7b6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controllers/ElementsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1454,6 +1454,7 @@ public function actionApplyDraft(): ?Response
/** @var Element|DraftBehavior|Response|null $element */
$element = $this->_element();

// this can happen if creating element via slideout, and we hit "create entry" before the autosave kicks in
if ($element instanceof Response) {
return $element;
}
Expand Down

0 comments on commit abc7b6a

Please sign in to comment.