From 2a87c39ff0de328eef3aee4cfbac7e744f9752b8 Mon Sep 17 00:00:00 2001 From: Christian Holladay Date: Thu, 7 Sep 2023 16:24:58 -0500 Subject: [PATCH] nullsafe commission preset --- resources/views/commissionpresets/create.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/commissionpresets/create.blade.php b/resources/views/commissionpresets/create.blade.php index db531a71..3b38f140 100644 --- a/resources/views/commissionpresets/create.blade.php +++ b/resources/views/commissionpresets/create.blade.php @@ -101,7 +101,7 @@ class="shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:t
@include('livewire.image-upload', [ - 'current_url' => $commissionPreset?->image_url(), + 'current_url' => isset($commissionPreset) ? $commissionPreset?->image_url() : null, 'title' => 'Cover photo', 'name' => 'image' ])