When a page is refreshed, the asset selection dropdown would show the asset id instead of the name. To get the name, we are currently filtering based on ID after calling a describe asset model call. Initially, the call returns undefined.
Added a useEffect call to update selected asset once API call provides data.
Overview
When a page is refreshed, the asset selection dropdown would show the asset id instead of the name. To get the name, we are currently filtering based on ID after calling a describe asset model call. Initially, the call returns undefined.
Added a useEffect call to update selected asset once API call provides data.
Verifying Changes
https://github.com/user-attachments/assets/2572a051-8b63-44d2-aa4b-9dea8864ace9
Legal
This project is available under the Apache 2.0 License.