]> BookStack Code Mirror - bookstack/commitdiff
Fixed tag-manager loading on entity-creation
authorDan Brown <redacted>
Mon, 29 Jun 2020 22:40:34 +0000 (23:40 +0100)
committerDan Brown <redacted>
Mon, 29 Jun 2020 22:40:34 +0000 (23:40 +0100)
resources/views/components/tag-manager.blade.php

index aad5fb9d696fe5cf9c7bebcc19ffd035acff6789..9e24ba3fdcedadae6140c81122e75fb4fd33750c 100644 (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>