Merge pull request #4812 from devansh-webkul/issue-4811

Fixed error when redirect on review page #4811
This commit is contained in:
Glenn Hermans 2021-04-21 09:24:09 +02:00 committed by GitHub
commit 7525a5ab29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -79,7 +79,9 @@ class ProductController extends Controller
'attribute_id' => $attributeId,
]);
return Storage::download($productAttribute['text_value']);
return isset($productAttribute['text_value'])
? Storage::download($productAttribute['text_value'])
: null;
}
/**