aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/components/BaseCommandView.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/settings/components/BaseCommandView.jsx')
-rw-r--r--modern/src/settings/components/BaseCommandView.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/settings/components/BaseCommandView.jsx b/modern/src/settings/components/BaseCommandView.jsx
index acf39090..bb70c3b9 100644
--- a/modern/src/settings/components/BaseCommandView.jsx
+++ b/modern/src/settings/components/BaseCommandView.jsx
@@ -28,7 +28,7 @@ const BaseCommandView = ({ deviceId, item, setItem }) => {
return (
<>
<SelectField
- value={item.type || ''}
+ value={item.type}
onChange={(e) => setItem({ ...item, type: e.target.value, attributes: {} })}
endpoint={deviceId ? `/api/commands/types?${new URLSearchParams({ deviceId }).toString()}` : '/api/commands/types'}
keyGetter={(it) => it.type}