diff --git a/lib/nexmo_developer/app/presenters/sidenav.rb b/lib/nexmo_developer/app/presenters/sidenav.rb index 6d6d3b5a2..f1f8ff029 100644 --- a/lib/nexmo_developer/app/presenters/sidenav.rb +++ b/lib/nexmo_developer/app/presenters/sidenav.rb @@ -29,6 +29,14 @@ def nav_items end.compact end + if @nav_items.blank? + @nav_items = items.map do |item| + if @product && @product.split('/')[1] == nil && @product.include?(item[:title]) + SidenavItem.new(folder: item, sidenav: self) + end + end.compact + end + @nav_items end diff --git a/lib/nexmo_developer/version.rb b/lib/nexmo_developer/version.rb index ff60e200f..ed5665d08 100644 --- a/lib/nexmo_developer/version.rb +++ b/lib/nexmo_developer/version.rb @@ -1,3 +1,3 @@ module NexmoDeveloper - VERSION = '0.4.5'.freeze + VERSION = '0.4.6'.freeze end