Skip to content

Commit

Permalink
KAAV-1473 fixed issues on timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
henrihaapalasiili committed Aug 27, 2024
1 parent bc21d2f commit c91d620
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/input/DeadlineInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ const DeadLineInput = ({
if(currentDeadline?.deadline?.attribute && attributeData[currentDeadline.deadline.attribute]){
currentDeadlineDate = attributeData[currentDeadline.deadline.attribute]
}
else if(input.name === 'ehdotus_nahtaville_aineiston_maaraaika' && attributeData['ehdotus_kylk_aineiston_maaraaika']){
inputValue = attributeData['ehdotus_kylk_aineiston_maaraaika']
else if(input.name === 'ehdotus_nahtaville_aineiston_maaraaika'+indexString && attributeData['ehdotus_kylk_aineiston_maaraaika'+indexString ]){
inputValue = attributeData['ehdotus_kylk_aineiston_maaraaika'+indexString ]
}
else if(input.name === 'luonnosaineiston_maaraaika'+indexString && attributeData['kaavaluonnos_kylk_aineiston_maaraaika'+indexString]){
inputValue = attributeData['kaavaluonnos_kylk_aineiston_maaraaika'+indexString]
Expand Down
4 changes: 2 additions & 2 deletions src/components/project/EditProjectTimetableModal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -783,8 +783,8 @@ class EditProjectTimeTableModal extends Component {
locked: false,
phase: false,
phaseID: groupID,
start: phase === "luonnos" ? validValues[3].value : validValues[2].value,
end: validValues[0].value,
start: deadline,
end: start,
title: "divider"
}
this.state.items.add(diveverItem);
Expand Down

0 comments on commit c91d620

Please sign in to comment.