fix: limit workspace name length when created, fixed #809

This commit is contained in:
QiShaoXuan
2023-02-06 18:23:38 +08:00
parent de43f3f0e2
commit ab4feb04ba

View File

@@ -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