Skip to content

Commit e9700ec

Browse files
committed
Fix make:collection flow
1 parent 0c02dbf commit e9700ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Models/Collection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ protected function promptForAddPage(): bool
136136

137137
protected function promptForPage(): string
138138
{
139+
if (! $this->shouldMount) {
140+
return '';
141+
}
142+
139143
if ($this->addPage) {
140144
return text(
141145
label: 'What should be the page title for this mount?',

0 commit comments

Comments
 (0)