Skip to content

Commit 06bb473

Browse files
committed
Merge remote-tracking branch 'origin/0.x' into 0.x
2 parents fc8aa5b + aca6fa7 commit 06bb473

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Filament/Resources/DocumentTypeResource.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,15 @@ public static function table(Table $table): Table
173173
Tables\Actions\DeleteBulkAction::make(),
174174
])->iconButton(),
175175
])
176-
->checkIfRecordIsSelectableUsing(function (DocumentType|Model $record) {
176+
->checkIfRecordIsSelectableUsing(function (DocumentType | Model $record) {
177177
$hasContent = $record->content()->withoutGlobalScopes([
178178
SoftDeletingScope::class,
179179
])->count() > 0;
180180
if ($hasContent) {
181181
// Disallow delete this document type if have content
182182
return false;
183183
}
184+
184185
return true;
185186
})
186187
->filters([

0 commit comments

Comments
 (0)