Skip to content

Commit

Permalink
fix(frontdesk): NRE on parent table access
Browse files Browse the repository at this point in the history
  • Loading branch information
Fenrikur committed Sep 16, 2024
1 parent 0234000 commit dc8c04d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/frontdesk.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ class="btn btn-success align-self-center h-100 border fs-1" tabindex="-1">↵</b
<div class="mb-3">
<label for="table" class="form-label">Table</label>
<input type="text" readonly class="form-control fs-4" id="table"
value="{{ $application->table_number }}{{ $table ? '' . $table->name : '' }}"
value="{{ $application->parent?->table_number ?? $application->table_number }}{{ $table ? '' . $table->name : '' }}"
tabindex="-1">
</div>

Expand Down Expand Up @@ -588,7 +588,7 @@ class="form-check-input @error('power_strip', 'check-out') is-invalid @enderror"
href="?type=default&search={{ $applicationResult->user->reg_id }}">
{{ $applicationResult->user->name }}
({{ $applicationResult->user->reg_id }})
[{{ $applicationResult->table_number ?? $applicationResult->parent->table_number }}]
[{{ $applicationResult->parent?->table_number ?? $applicationResult->table_number }}]
@switch($applicationResult->type)
@case(\App\Enums\ApplicationType::Dealer)
<span
Expand Down

0 comments on commit dc8c04d

Please sign in to comment.