diff --git a/app/assets/javascripts/gl_dropdown.js.coffee b/app/assets/javascripts/gl_dropdown.js.coffee
index e763ca5c78000ea0c559281f38883912c82e3430..0b0620a71c5587f4ed7670d021988dfe946c8df9 100644
--- a/app/assets/javascripts/gl_dropdown.js.coffee
+++ b/app/assets/javascripts/gl_dropdown.js.coffee
@@ -209,10 +209,17 @@ class GitLabDropdown
       selected = if @options.isSelected then @options.isSelected(data) else false
       url = if @options.url then @options.url(data) else "#"
 
+      # Set URL
+      if @options.url?
+        url = @options.url(data)
+      else
+        url = if data.url? then data.url else ''
+
+      # Set Text
       if @options.text?
         text = @options.text(data)
       else
-        text = data.text if data.text?
+        text = if data.text? then data.text else ''
 
       cssClass = "";