[APIException] Streamlit MultiSelect Default Value Must Exist in Options

Hi, in my Streamlit application I want to allow the user to query data from finance by two methods: (1) company name, (2) company ticker.

I have one function that passes a different list() to multiselect() in each case. However, I keep getting a streamlit exception. (See first image for my code, and second for exception).

My idea is to pass “list_of_assets”. Then list of assets is either a list of tickers given by cl.return_list_tickers() or a list of company names given by cl.return_list_names().