Skip to content

Commit

Permalink
Merge pull request #1495 from Nexmo/APIDOC-168_left_navbar
Browse files Browse the repository at this point in the history
APIDOC-168: Added check for single product + bump version
  • Loading branch information
marcoranieri authored Jul 5, 2022
2 parents b421fb7 + 9183dde commit 4ccde74
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions lib/nexmo_developer/app/presenters/sidenav.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/nexmo_developer/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module NexmoDeveloper
VERSION = '0.4.5'.freeze
VERSION = '0.4.6'.freeze
end

0 comments on commit 4ccde74

Please sign in to comment.