@@ -622,7 +622,7 @@ export default function ProjectDetailPage() {
622622 const handleCellClick = ( taskId : string , dayNumber : number ) => {
623623 // Check if there's already an action for this day
624624 const existingAction = actions . find ( action =>
625- action . taskId === taskId && action . dayNumber === dayNumber
625+ action . taskId === taskId && action . day === dayNumber
626626 ) ;
627627
628628 if ( existingAction ) {
@@ -699,8 +699,8 @@ export default function ProjectDetailPage() {
699699
700700 const actionData = {
701701 taskId : selectedCellInfo . taskId ,
702- dayNumber : selectedCellInfo . dayNumber ,
703- details
702+ details ,
703+ day : selectedCellInfo . dayNumber
704704 } ;
705705
706706 showNotification ( `Creating action for Day ${ selectedCellInfo . dayNumber } ...` , 'success' ) ;
@@ -977,7 +977,7 @@ export default function ProjectDetailPage() {
977977
978978 // Check if there's an action for this task and day (only for tasks, not tags)
979979 const hasAction = ! isTag && actions . some ( action =>
980- action . taskId === item . id && action . dayNumber === dayNumber
980+ action . taskId === item . id && action . day === dayNumber
981981 ) ;
982982
983983 // Debug logging for first task and day 1 to verify actions are loaded
@@ -1659,7 +1659,7 @@ function ActionViewModal({ isOpen, action, isEditMode, onClose, onEdit, onSave,
16591659 onClick = { ( event ) => event . stopPropagation ( ) }
16601660 >
16611661 < div className = "modal-header" >
1662- < h3 id = "action-view-modal-title" > Action for Day { action . dayNumber } </ h3 >
1662+ < h3 id = "action-view-modal-title" > Action for Day { action . day } </ h3 >
16631663 < button
16641664 type = "button"
16651665 className = "modal-close"
0 commit comments