Fix import bug.

This commit is contained in:
BoHung Chiu 2021-07-16 15:49:43 +08:00
parent e172816c36
commit 005f221b99
1 changed files with 1 additions and 2 deletions

View File

@ -33,8 +33,7 @@ module Admin::EventNewsHelper
value = {}
anns = EventNews.new
row.cells.each_with_index do |cell,index|
next if cell.nil?
val = cell.value
val = cell.nil? ? nil : cell.value
next if val.nil? || val == ""
case index
when 0