From b42c2b59e73b197782beb537bd7522f74f31c77e Mon Sep 17 00:00:00 2001 From: Tyler Dane Date: Thu, 21 Nov 2024 07:35:33 -0600 Subject: [PATCH] fix: trigger month draft upon button click was previously creating week draft --- .../Sidebar/SomedayTab/SomedayEvents/SomedayEvents.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/web/src/views/Calendar/components/Sidebar/SomedayTab/SomedayEvents/SomedayEvents.tsx b/packages/web/src/views/Calendar/components/Sidebar/SomedayTab/SomedayEvents/SomedayEvents.tsx index 1fe6e8d5..1769ddb4 100644 --- a/packages/web/src/views/Calendar/components/Sidebar/SomedayTab/SomedayEvents/SomedayEvents.tsx +++ b/packages/web/src/views/Calendar/components/Sidebar/SomedayTab/SomedayEvents/SomedayEvents.tsx @@ -80,11 +80,7 @@ export const SomedayEvents: FC = ({ ? "Add to month" : "Add to week" } - onClick={() => - sidebarProps.util.onPlaceholderClick( - Categories_Event.SOMEDAY_WEEK - ) - } + onClick={() => sidebarProps.util.onPlaceholderClick(category)} shortcut={category === Categories_Event.SOMEDAY_MONTH ? "M" : "W"} >