mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 10:41:45 +08:00
Fix the build.
This commit is contained in:
parent
1197750e7d
commit
bd0efb8525
|
@ -25,10 +25,16 @@ class CategoryList
|
||||||
trim_results
|
trim_results
|
||||||
|
|
||||||
if preloaded_topic_custom_fields.present?
|
if preloaded_topic_custom_fields.present?
|
||||||
Topic.preload_custom_fields(
|
displayable_topics = @categories.map(&:displayable_topics)
|
||||||
@categories.map(&:displayable_topics).flatten,
|
displayable_topics.flatten!
|
||||||
preloaded_topic_custom_fields
|
displayable_topics.compact!
|
||||||
)
|
|
||||||
|
if displayable_topics.present?
|
||||||
|
Topic.preload_custom_fields(
|
||||||
|
displayable_topics,
|
||||||
|
preloaded_topic_custom_fields
|
||||||
|
)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user