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: fixed can not add new card in kanban

QiShaoXuan4f73eeb9de68
diff --git a/libs/components/editor-core/src/kanban/atom.ts b/libs/components/editor-core/src/kanban/atom.ts
index 1e8b10606e..86858a559e 100644
--- a/libs/components/editor-core/src/kanban/atom.ts
+++ b/libs/components/editor-core/src/kanban/atom.ts
@@ -57,18 +57,13 @@ const isValueBelongOption = (
option: KanbanGroup
) => {
switch (propertyValue.type) {
- case PropertyType.Select || PropertyType.Status: {
+ case PropertyType.Select:
+ case PropertyType.Status: {
return propertyValue.value === option.id;
}
case PropertyType.MultiSelect: {
return propertyValue.value.some(i => i === option.id);
}
- // case PropertyType.Status: {
- // return propertyValue.value === option.id;
- // }
- // case PropertyType.Text: {
- // TOTODO:DO support this type
- // }
default: {
console.error(propertyValue, option);
throw new Error('Not support group by type');