Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

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

QiShaoXuanab4feb04ba18
diff --git a/packages/app/src/components/create-workspace/index.tsx b/packages/app/src/components/create-workspace/index.tsx
index 11aa3de52b..2c17e6a241 100644
--- a/packages/app/src/components/create-workspace/index.tsx
+++ b/packages/app/src/components/create-workspace/index.tsx
@@ -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