Skip to content

Commit

Permalink
Merge pull request #15 from nouraellm/use-get-instead-of-accessing-key
Browse files Browse the repository at this point in the history
  • Loading branch information
prakharrathi25 authored Oct 12, 2022
2 parents cb577c5 + faa4883 commit 2c87607
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions multipage.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def run(self):
page = st.sidebar.selectbox(
'App Navigation',
self.pages,
format_func=lambda page: page['title']
format_func=lambda page: page.get('title', "")
)

# run the app function
page['function']()
page.get('function')()

0 comments on commit 2c87607

Please sign in to comment.