fix for no hashtags present
This commit is contained in:
parent
6f93538e60
commit
409dbf1e97
|
|
@ -77,7 +77,7 @@ class Admin::VideoProsController < OrbitAdminController
|
|||
end
|
||||
|
||||
def create_get_video_tags(video)
|
||||
new_tags = params["video_tags"].split(",")
|
||||
new_tags = params["video_tags"].present? ? params["video_tags"].split(",") : []
|
||||
tags = []
|
||||
video.video_tags = []
|
||||
new_tags.each do |tag|
|
||||
|
|
|
|||
Loading…
Reference in New Issue