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: c442d89fa6b1b46a24ddefb5ce5b9968367041b147d030b9d4dc8f6f4807749b
4
- data.tar.gz: 607340ad1271474b15c5bdb20a6e24ed681401f8a54482387e896da3ef1b3cda
3
+ metadata.gz: 496db88c4285d20aa880b70a178c9ffb7dad653c4e78ac885bbc2fdf3c7831c2
4
+ data.tar.gz: 0f163f578e2a32ef6a114e805f31ed68253a4dd08c73bb34b2c8c1786b8b9d08
5
5
  SHA512:
6
- metadata.gz: 9574c95bb2205a6ae7b1569b1a547054ce7c86107de0af7098a860fba4e4b0175a5fe9374ac6fd781481808b0bb071c903b51c6043036e88f39ac334cd3f32a7
7
- data.tar.gz: 16d8f689f5fefe71d8158431052cf8df7cffacf15bc8c74687d8573bd23a781a87ac6d888c5cb782987ff912999373d44e84bc590c19a486a7debc080b48a0dd
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"])
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '5.5.0'.freeze
2
+ VERSION = '5.5.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.5.0
4
+ version: 5.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev