|
@@ -218,7 +218,9 @@ func generateRuleScopeIndexMap(items []*models.ExcelInfoRuleMappingView) (ruleSc
|
|
|
}
|
|
|
if len(coords) == 2 {
|
|
|
x, y := coordIntArr[0]-1, coordIntArr[1]-1
|
|
|
- ruleScopeMap[y] = make(map[int]int)
|
|
|
+ if _, ok := ruleScopeMap[y]; !ok {
|
|
|
+ ruleScopeMap[y] = make(map[int]int)
|
|
|
+ }
|
|
|
ruleScopeMap[y][x] = item.ExcelInfoRuleMappingId
|
|
|
}
|
|
|
}
|