단위테스트(Unit Test) #608

This commit is contained in:
김민식 2025-02-06 18:08:18 +09:00
parent 8f1710e3dc
commit 558da72215

View File

@ -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
}