Is there a way to stop the Repeater from creating one item in it on the create

For some reason the my repeater always create one item in it on the create page. I want it be blank to i ask for an item to be added to it.
Forms\Components\Repeater::make('notes')
->relationship()
->schema([
Forms\Components\RichEditor::make('content'),
Forms\Components\Hidden::make('user_id')
->default(auth()->id()),
])
->itemLabel(fn(array $state): ?string => 'Comment')
->collapsible()
->collapsed()
->collapseAllAction(
fn(Action $action) => $action->label('Collapse all notes'),
)
->expandAllAction(
fn(Action $action) => $action->label('Expand all notes'),
)
->reorderable(false)
->hiddenLabel();
Forms\Components\Repeater::make('notes')
->relationship()
->schema([
Forms\Components\RichEditor::make('content'),
Forms\Components\Hidden::make('user_id')
->default(auth()->id()),
])
->itemLabel(fn(array $state): ?string => 'Comment')
->collapsible()
->collapsed()
->collapseAllAction(
fn(Action $action) => $action->label('Collapse all notes'),
)
->expandAllAction(
fn(Action $action) => $action->label('Expand all notes'),
)
->reorderable(false)
->hiddenLabel();
No description
1 Reply
awcodes
awcodes3mo ago
->defaultItems(0) iirc