mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-18 11:31:36 +03:00
Merge pull request #102 from toeverything/feat/block-pendant
fix: fixed can not add new card in kanban
This commit is contained in:
commit
c512d4f093
@ -57,18 +57,13 @@ const isValueBelongOption = (
|
|||||||
option: KanbanGroup
|
option: KanbanGroup
|
||||||
) => {
|
) => {
|
||||||
switch (propertyValue.type) {
|
switch (propertyValue.type) {
|
||||||
case PropertyType.Select || PropertyType.Status: {
|
case PropertyType.Select:
|
||||||
|
case PropertyType.Status: {
|
||||||
return propertyValue.value === option.id;
|
return propertyValue.value === option.id;
|
||||||
}
|
}
|
||||||
case PropertyType.MultiSelect: {
|
case PropertyType.MultiSelect: {
|
||||||
return propertyValue.value.some(i => i === option.id);
|
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: {
|
default: {
|
||||||
console.error(propertyValue, option);
|
console.error(propertyValue, option);
|
||||||
throw new Error('Not support group by type');
|
throw new Error('Not support group by type');
|
||||||
|
Loading…
Reference in New Issue
Block a user