Check for the array key in $activeFile->first_row

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-11-24 10:08:35 +00:00
parent 1217bff4b6
commit 9607567b75

View file

@ -235,7 +235,7 @@
])
}}
</div>
@if ($activeFile->first_row)
@if (($activeFile->first_row) && (array_key_exists($index, $activeFile->first_row)))
<div class="col-md-5">
<p class="form-control-static">{{ str_limit($activeFile->first_row[$index], 50, '...') }}</p>
</div>