addRoof, index 데이터 추가
This commit is contained in:
parent
59f9377cc9
commit
a316664b20
@ -222,6 +222,7 @@ const Trestle = forwardRef((props, ref) => {
|
|||||||
if (i === selectedRoof?.index) {
|
if (i === selectedRoof?.index) {
|
||||||
return {
|
return {
|
||||||
...selectedRoof,
|
...selectedRoof,
|
||||||
|
addRoof: roof,
|
||||||
trestle: trestleState,
|
trestle: trestleState,
|
||||||
eavesMargin,
|
eavesMargin,
|
||||||
ridgeMargin,
|
ridgeMargin,
|
||||||
@ -267,7 +268,7 @@ const Trestle = forwardRef((props, ref) => {
|
|||||||
...moduleSelectionData,
|
...moduleSelectionData,
|
||||||
roofConstructions: newAddedRoofs.map((roof, index) => {
|
roofConstructions: newAddedRoofs.map((roof, index) => {
|
||||||
return {
|
return {
|
||||||
roofIndex: index,
|
roofIndex: roof.index,
|
||||||
addRoof: {
|
addRoof: {
|
||||||
...moduleSelectionData.roofConstructions[index]?.addRoof,
|
...moduleSelectionData.roofConstructions[index]?.addRoof,
|
||||||
...roof.addRoof,
|
...roof.addRoof,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user