Use the property 'archived' so if the 'name' one changes it doesn't fails

This commit is contained in:
Ivan Nieto Vivanco 2021-09-13 16:45:05 -05:00
parent 1b433920f1
commit 1ae665b645

View file

@ -127,7 +127,7 @@
@foreach ($assets as $asset) @foreach ($assets as $asset)
@php @php
if($snipeSettings->show_archived_in_list != 1 && $asset->assetstatus->name === 'Archived'){ if($snipeSettings->show_archived_in_list != 1 && $asset->assetstatus->archived == 1){
continue; continue;
} }
@endphp @endphp