Commit 20f39774ba61cf687fc1bd3e5d47cc0dca830e1c
1 parent
b1020ce9
check error generate repeat element
Showing
2 changed files
with
3 additions
and
2 deletions
| ... | ... | @@ -252,7 +252,8 @@ module Kanjai |
| 252 | 252 | row_index.each_with_index do |row_index, position| |
| 253 | 253 | value = scope.where(row_item: row_index).collect{|item| [item.marker, item.text_value] }.to_h |
| 254 | 254 | value ||= {} |
| 255 | - value = value.merge(hash_value) if hash_value | |
| 255 | + hash_value ||= {} | |
| 256 | + value = value.merge(hash_value) | |
| 256 | 257 | if(position == 0) |
| 257 | 258 | value['###FIRST_ITEM_ACTIVE###'] = 'active show' |
| 258 | 259 | value['###FIRST_ITEM_TRUE###'] = 'true' | ... | ... |