-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: check if variable is valid before converting (#3514)
* feat: Add logging and session imports to endpoints.py Import logging and session modules for better error handling and database interaction in endpoints.py. * refactor: Improve custom component parameter handling in update endpoint * feat: Add parse_value function to parse values based on input type Add a new function `parse_value` to `utils.py` that parses values based on the input type provided. The function handles different input types such as 'IntInput' and 'FloatInput' to ensure proper parsing. * feat: Refactor custom_component_update() to use parse_value utility function Use parse_value utility function to handle different input types and empty values in custom_component_update() for better readability and maintainability.
- Loading branch information
1 parent
9d5f97a
commit 4e15090
Showing
2 changed files
with
25 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters