This commit is contained in:
BoHung Chiu 2021-06-09 14:38:43 +08:00
parent 93c7fc6bfb
commit 3bebcaf7b1
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ if bundle_update_flag
default_announcement_widget_info.each do |h|
name_without_index = h["name"]["zh_tw"].sub(/\d+/,'')
widget_info_index = (widget_info.index{|hh| hh["name"]["zh_tw"].include?(name_without_index)} rescue -1)
if widget_info_index == -1
if (widget_info_index == -1 || widget_info_index.nil?)
update_flag = true
copy_h = h.dup
h.delete("force_cover")