Fix create task from Add Button (#1318)

- fix create task
This commit is contained in:
brendanlaschke 2023-08-26 03:27:49 +02:00 committed by GitHub
parent 7e264565ef
commit 802bd5db5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,6 @@ export function ShowPageAddButton({
const openCreateActivity = useOpenCreateActivityDrawer();
function handleSelect(type: ActivityType) {
console.log(type, entity);
openCreateActivity(type, [entity]);
closeDropdownButton();
}
@ -59,7 +58,7 @@ export function ShowPageAddButton({
Note
</DropdownMenuItem>
<DropdownMenuItem
onClick={() => handleSelect(ActivityType.Note)}
onClick={() => handleSelect(ActivityType.Task)}
accent="regular"
>
<IconCheckbox size={16} />