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 f4d5d4b2..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 || null}
+ 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}