Andrew Wallo 5 months ago
parent
commit
508c5f7334
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/Filament/Company/Resources/Common/OfferingResource.php

+ 1
- 1
app/Filament/Company/Resources/Common/OfferingResource.php View File

37
                     ->label('Inactive adjustments')
37
                     ->label('Inactive adjustments')
38
                     ->warning()
38
                     ->warning()
39
                     ->icon('heroicon-o-exclamation-triangle')
39
                     ->icon('heroicon-o-exclamation-triangle')
40
-                    ->visible(fn (Offering $record) => $record->hasInactiveAdjustments())
40
+                    ->visible(fn (?Offering $record) => $record?->hasInactiveAdjustments())
41
                     ->columnSpanFull()
41
                     ->columnSpanFull()
42
                     ->description(function (Offering $record) {
42
                     ->description(function (Offering $record) {
43
                         $inactiveAdjustments = collect();
43
                         $inactiveAdjustments = collect();

Loading…
Cancel
Save