Skip to content

Commit

Permalink
Fab's comment
Browse files Browse the repository at this point in the history
Co-authored-by: Fabien Lelaquais <[email protected]>
  • Loading branch information
FredLL-Avaiga and FabienLelaquais authored May 31, 2024
1 parent 853294d commit 0caf617
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions taipy/gui/_renderers/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,8 @@ def set_value_and_default(
if isinstance(value, (int, float)):
return self.__set_react_attribute(_to_camel_case(var_name), value)
if isinstance(value, (datetime, date, time)):
value = _date_to_string(value)
self.set_attribute(_to_camel_case(var_name), value)
return self.set_attribute(_to_camel_case(var_name), _date_to_string(value))

Check failure on line 833 in taipy/gui/_renderers/builder.py

View workflow job for this annotation

GitHub Actions / partial-tests / linter

unexpected indent [syntax]
else:
self.set_attribute(_to_camel_case(var_name), value)
Expand Down

0 comments on commit 0caf617

Please sign in to comment.