diff --git a/app/services/serendipitous_service.rb b/app/services/serendipitous_service.rb index e4a2e1ac..0f81cb3d 100644 --- a/app/services/serendipitous_service.rb +++ b/app/services/serendipitous_service.rb @@ -18,7 +18,7 @@ class SerendipitousService < Service fields_for_these_categories = AttributeField.where( user: content.user, - field_type: ["text_area"], + field_type: "text_area", hidden: [nil, false], attribute_category_id: categories_for_this_type.pluck(:id) ) diff --git a/app/views/prompts/_smart_sidebar.html.erb b/app/views/prompts/_smart_sidebar.html.erb index 54fc6a02..eb21e2d6 100644 --- a/app/views/prompts/_smart_sidebar.html.erb +++ b/app/views/prompts/_smart_sidebar.html.erb @@ -50,6 +50,7 @@
  • <%= serialized_field[:value] %>
  • <% elsif serialized_field[:type] == "link" %> <%= + #TODO: We should swap all the other field displays here with the new partials also render partial: "content/display/attribute_value/link", locals: { value: serialized_field[:value], content: content } %>