govuk_publishing_components 5.5.0 → 5.5.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 496db88c4285d20aa880b70a178c9ffb7dad653c4e78ac885bbc2fdf3c7831c2
|
4
|
+
data.tar.gz: 0f163f578e2a32ef6a114e805f31ed68253a4dd08c73bb34b2c8c1786b8b9d08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87400682242b138be749d02d2c0610c1ad762986ee8ea75d6953984c14c84549154764c059bac8009abf57115436567f106cb2a5a488f50f708f3652e43ebfdc
|
7
|
+
data.tar.gz: ee766c443bd5db2565db4feda6a9e1bf8a10601eb58f6e28906a389980ad80bf720bd43605c7b7cefeac5c51663c11a1d25a006c9deed15cf749439e7f7e7ce7
|
@@ -212,7 +212,7 @@ private
|
|
212
212
|
|
213
213
|
@parents_tagged_to_same_mainstream_browse_page ||= related_links.select do |related_item|
|
214
214
|
next if common_parent_content_ids.include?(related_item["content_id"])
|
215
|
-
mainstream_browse_pages = related_item.dig("links", "mainstream_browse_pages")
|
215
|
+
mainstream_browse_pages = related_item.dig("links", "mainstream_browse_pages") || []
|
216
216
|
parents = mainstream_browse_pages.map { |page| page["links"]["parent"][0] }
|
217
217
|
content_ids = parents.map { |parent| parent["content_id"] }
|
218
218
|
content_ids.include?(grandparent["content_id"])
|