From f52be84522da7f8e1c2b19d3484250e275252799 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 2 May 2022 17:13:33 -0700 Subject: Implement model validation --- modern/src/settings/CommandPage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modern/src/settings/CommandPage.js') 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 ( - + {item && ( }> -- cgit v1.2.3