diff --git a/app/views/admin/communication/blocks/templates/posts/_edit.html.erb b/app/views/admin/communication/blocks/templates/posts/_edit.html.erb index a022d14ac31ad4de5ff3a1f99fc7eb930f746438..10ca5a411f43b85195d18e23ff85af77871d0c98 100644 --- a/app/views/admin/communication/blocks/templates/posts/_edit.html.erb +++ b/app/views/admin/communication/blocks/templates/posts/_edit.html.erb @@ -1,4 +1,4 @@ -<% categories = collection_tree(@block.about&.website.categories.ordered) %> +<% categories = collection_tree(@block.about&.website.categories) %> <div class="row mb-1"> <div class="col-md-6"> @@ -34,7 +34,7 @@ class="form-select select" v-model="data.category_id"> <% categories.each_with_index do |category, index| %> - <option value="<%= category.id %>"><%= category %></option> + <option value="<%= category[:id] %>"><%= category[:label].html_safe %></option> <% end %> </select> </div>