This commit is contained in:
BoHung Chiu 2021-04-13 15:25:03 +08:00
parent 7d87214fb0
commit d6b217ec6e
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ class ExperimentsController < ApplicationController
subject_links = subject.subject_links.collect do |f| subject_links = subject.subject_links.collect do |f|
{ {
"link_url" => f.url, "link_url" => f.url,
"link_title" => f.title "link_title" => (f.title.blank? ? f.url : f.title)
} }
end end
@ -136,7 +136,7 @@ class ExperimentsController < ApplicationController
subject_links = subject.subject_links.collect do |f| subject_links = subject.subject_links.collect do |f|
{ {
"link_url" => f.url, "link_url" => f.url,
"link_title" => f.title "link_title" => (f.title.blank? ? f.url : f.title)
} }
end end