variable checking

This commit is contained in:
2024-04-24 22:05:57 +10:00
parent 3a2735f00d
commit 6ac8fb4f89

View File

@@ -37,7 +37,7 @@
<x-ui.gallery
label="Gallery"
name="gallery"
value="{{ $post ? \App\Helpers::arrayToString($post->files('gallery')->pluck('name')->toArray()) : '' }}"
value="{{ isset($post) ? \App\Helpers::arrayToString($post->files('gallery')->pluck('name')->toArray()) : '' }}"
editor="true"
></x-ui.gallery>
</div>