fix: limit workspace name length when created, fixed #809
This commit is contained in:
@@ -58,7 +58,7 @@ export const CreateWorkspaceModal = ({ open, onClose }: ModalProps) => {
|
|||||||
onKeyDown={handleKeyDown}
|
onKeyDown={handleKeyDown}
|
||||||
placeholder={t('Set a Workspace name')}
|
placeholder={t('Set a Workspace name')}
|
||||||
onChange={value => {
|
onChange={value => {
|
||||||
setWorkspaceName(value);
|
setWorkspaceName(value.slice(0, 15));
|
||||||
}}
|
}}
|
||||||
></Input>
|
></Input>
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Reference in New Issue
Block a user