mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 04:41:43 +00:00
no fallar miserablemente si value esta vacio
This commit is contained in:
parent
6941f21a54
commit
60d504247e
1 changed files with 1 additions and 1 deletions
|
@ -288,7 +288,7 @@ class Post
|
|||
_value = [(_value.first + value).uniq]
|
||||
elsif _value.count == 2
|
||||
_value = _value.each_with_index.map do |v,i|
|
||||
v + value[i]
|
||||
v + value.fetch(i, [])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue