From 4f73eeb9de6856af60e3ae14e5b9dcbe0cb0403f Mon Sep 17 00:00:00 2001 From: QiShaoXuan Date: Fri, 5 Aug 2022 15:06:12 +0800 Subject: [PATCH] fix: fixed can not add new card in kanban --- libs/components/editor-core/src/kanban/atom.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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');