Merge branch 'qcast-pub' into dev
This commit is contained in:
commit
f17b308384
@ -240,7 +240,7 @@ export function useRoofAllocationSetting(id) {
|
||||
|
||||
const onDeleteRoofMaterial = (idx) => {
|
||||
const isSelected = currentRoofList[idx].selected
|
||||
const newRoofList = [...currentRoofList].filter((_, index) => index !== idx)
|
||||
const newRoofList = JSON.parse(JSON.stringify(currentRoofList)).filter((_, index) => index !== idx)
|
||||
if (isSelected) {
|
||||
newRoofList[0].selected = true
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user