Skip to content

Commit 9de191c

Browse files
authored
fix: check for url presence before trying to append to it (#464)
1 parent c94cd33 commit 9de191c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/graphiti/util/link.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def raw_url
4848

4949
def on_demand_links(url)
5050
return url unless Graphiti.config.links_on_demand
51+
return unless url
5152

5253
url << if url.include?("?")
5354
"&links=true"

0 commit comments

Comments
 (0)