From 45f2f2135ad981710357ac8850e9ceb23866968d Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 26 Oct 2023 09:41:58 +1100 Subject: [PATCH] Minor fixes for live previews --- app/Http/Controllers/PreviewController.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/Http/Controllers/PreviewController.php b/app/Http/Controllers/PreviewController.php index d297e3bcfa89..e448256aa7e7 100644 --- a/app/Http/Controllers/PreviewController.php +++ b/app/Http/Controllers/PreviewController.php @@ -117,11 +117,6 @@ class PreviewController extends BaseController $design = \App\Models\Design::query()->withTrashed()->find($entity_obj->design_id ?? 2); - /* Catch all in case migration doesn't pass back a valid design */ - if (! $design) { - $design = \App\Models\Design::query()->find(2); - } - if ($design->is_custom) { $options = [ 'custom_partials' => json_decode(json_encode($design->design), true),