diff options
author | Matjaž Črnko <m.crnko@txt.si> | 2024-01-22 21:06:27 +0100 |
---|---|---|
committer | Matjaž Črnko <m.crnko@txt.si> | 2024-01-22 21:06:27 +0100 |
commit | ba24d834925f3d66d875ae601e80a60cf03110cc (patch) | |
tree | 54b665435cd2bff9d21d730f7f7c18dbe509da3b /modern/src/settings/UserPage.jsx | |
parent | 829fa6caac936cc53395ca4fe7f05e13c2841588 (diff) | |
download | trackermap-web-ba24d834925f3d66d875ae601e80a60cf03110cc.tar.gz trackermap-web-ba24d834925f3d66d875ae601e80a60cf03110cc.tar.bz2 trackermap-web-ba24d834925f3d66d875ae601e80a60cf03110cc.zip |
fix: SelectField default to null value and fix emptyTitle
Diffstat (limited to 'modern/src/settings/UserPage.jsx')
-rw-r--r-- | modern/src/settings/UserPage.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/settings/UserPage.jsx b/modern/src/settings/UserPage.jsx index 8a61b3b7..f276beca 100644 --- a/modern/src/settings/UserPage.jsx +++ b/modern/src/settings/UserPage.jsx @@ -267,7 +267,7 @@ const UserPage = () => { </Select> </FormControl> <SelectField - value={(item.attributes && item.attributes.timezone) || null} + value={item.attributes && item.attributes.timezone} onChange={(e) => setItem({ ...item, attributes: { ...item.attributes, timezone: e.target.value } })} endpoint="/api/server/timezones" keyGetter={(it) => it} |