From 574ef4574898257c700e1046887bfb6dd228e57e Mon Sep 17 00:00:00 2001 From: Gail Terman Date: Thu, 30 Nov 2023 22:19:15 -0500 Subject: [PATCH] Hide the link if the url is empty --- app/serializers/conclar/session_serializer_with_links.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/serializers/conclar/session_serializer_with_links.rb b/app/serializers/conclar/session_serializer_with_links.rb index d3b6fc4c1..d107bce9c 100644 --- a/app/serializers/conclar/session_serializer_with_links.rb +++ b/app/serializers/conclar/session_serializer_with_links.rb @@ -14,7 +14,7 @@ class Conclar::SessionSerializerWithLinks < ActiveModel::Serializer end attribute :desc do - if object.integrations + if object.integrations && object.integrations.dig('smofcon', 'link') != '' "#{object.description}

#{object.integrations.dig('smofcon', 'text') || 'Click here to view'}

" else object.description