aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/CommandPage.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/settings/CommandPage.js')
-rw-r--r--modern/src/settings/CommandPage.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/modern/src/settings/CommandPage.js b/modern/src/settings/CommandPage.js
index 8a7f5b94..0b0f54b6 100644
--- a/modern/src/settings/CommandPage.js
+++ b/modern/src/settings/CommandPage.js
@@ -30,8 +30,10 @@ const CommandPage = () => {
}
}, [availableAttributes, item]);
+ const validate = () => item && item.type;
+
return (
- <EditItemView endpoint="commands" item={item} setItem={setItem}>
+ <EditItemView endpoint="commands" item={item} setItem={setItem} validate={validate}>
{item && (
<Accordion defaultExpanded>
<AccordionSummary expandIcon={<ExpandMoreIcon />}>