From 60d7128a5e091349854ad046deb98cb8befe3e8e Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 15 Nov 2022 17:41:57 +0000 Subject: [PATCH] Replace error suppression with better logic Signed-off-by: snipe --- resources/views/hardware/view.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.php index ceceeefdb7..2093afecbc 100755 --- a/resources/views/hardware/view.blade.php +++ b/resources/views/hardware/view.blade.php @@ -1301,8 +1301,8 @@ {{ $file->filename }} @endif - - {{ Helper::formatFilesizeUnits(@Storage::size('private_uploads/assetmodels/'.$file->filename)) }} + + {{ (Storage::exists('private_uploads/assetmodels/'.$file->filename)) ? Helper::formatFilesizeUnits(Storage::size('private_uploads/assetmodels/'.$file->filename)) : '' }} @if ($file->note)