Fix [Sentry] ERROR: url is undefined
parent
77a6d7d49a
commit
0769c13c97
|
@ -44,10 +44,10 @@ class NavigationUrlsService extends taiga.Service
|
||||||
return url.replace(/(:\w+)/g, replacer)
|
return url.replace(/(:\w+)/g, replacer)
|
||||||
|
|
||||||
resolve: (name, ctx) ->
|
resolve: (name, ctx) ->
|
||||||
if ctx
|
url = @.urls[name]
|
||||||
return @.formatUrl(@.urls[name], ctx)
|
return "" if not url
|
||||||
return @.urls[name]
|
return @.formatUrl(url, ctx) if ctx
|
||||||
|
return url
|
||||||
|
|
||||||
module.service("$tgNavUrls", NavigationUrlsService)
|
module.service("$tgNavUrls", NavigationUrlsService)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue