Fixed tag-manager loading on entity-creation

This commit is contained in:
Dan Brown 2020-06-29 23:40:34 +01:00
parent 573c4e26d5
commit 181ae6d055
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9

View file

@ -9,7 +9,7 @@
<div component="sortable-list"
option:sortable-list:handle-selector=".handle">
@include('components.tag-manager-list', ['tags' => $entity->tags->all() ?? []])
@include('components.tag-manager-list', ['tags' => $entity ? $entity->tags->all() : []])
</div>
<button refs="add-remove-rows@add" type="button" class="text-button">{{ trans('entities.tags_add') }}</button>