mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-20 07:47:19 +08:00
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}
|
||||
placeholder={t('Set a Workspace name')}
|
||||
onChange={value => {
|
||||
setWorkspaceName(value);
|
||||
setWorkspaceName(value.slice(0, 15));
|
||||
}}
|
||||
></Input>
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user