Fixing missing category in listing modal (#11301)
This commit is contained in:
parent
97d5bc47b6
commit
47be7ea322
2 changed files with 2 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ class ListingsController < ApplicationController
|
|||
title processed_html tag_list category id user_id slug contact_via_connect location bumped_at
|
||||
originally_published_at
|
||||
],
|
||||
methods: %i[category],
|
||||
include: {
|
||||
author: { only: %i[username name], methods: %i[username profile_image_90] },
|
||||
user: { only: %i[username], methods: %i[username] }
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ RSpec.describe "/listings", type: :request do
|
|||
listings = JSON.parse(parsed_response.xpath("//*[@id='listings-index-container']")[0]["data-listings"])
|
||||
|
||||
index_keys = %w[
|
||||
title processed_html tag_list id user_id slug contact_via_connect location bumped_at
|
||||
title processed_html tag_list category id user_id slug contact_via_connect location bumped_at
|
||||
originally_published_at author user
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue