Skip to content

Commit

Permalink
Adds condition to only process CSV if is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
inietov committed Oct 24, 2023
1 parent d5598b3 commit 8f8e5cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/views/livewire/importer.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,11 @@ class="col-md-12 table table-striped snipe-table">
])
}}
</div>
@if ($activeFile->first_row)
<div class="col-md-5">
<p class="form-control-static">{{ str_limit($activeFile->first_row[$index], 50, '...') }}</p>
</div>
@endif
</div><!-- /div row -->
@endforeach
@else
Expand Down

0 comments on commit 8f8e5cb

Please sign in to comment.