mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 20:28:46 -05:00
fixed recipe context menu
This commit is contained in:
@@ -53,13 +53,13 @@ export const ResolveUrlMixin = {
|
||||
* @param {string} url name of url
|
||||
* @param {*} params tuple of params to pass to django named url
|
||||
*/
|
||||
resolveDjangoUrl: function (url, params) {
|
||||
resolveDjangoUrl: function (url, params = null) {
|
||||
return resolveDjangoUrl(url, params)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function resolveDjangoUrl(url, params=null) {
|
||||
export function resolveDjangoUrl(url, params = null) {
|
||||
if (params !== null) {
|
||||
return window.Urls[url](params)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user