From 70ee58e98983bbeb360e25a13580cadd7bbd9978 Mon Sep 17 00:00:00 2001 From: Senad Uka Date: Wed, 16 Mar 2016 12:13:47 +0100 Subject: [PATCH] slugify fixed --- front-ui/app/globals.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/front-ui/app/globals.js b/front-ui/app/globals.js index c4000ef..0e86c5c 100644 --- a/front-ui/app/globals.js +++ b/front-ui/app/globals.js @@ -29,6 +29,9 @@ module.exports = { PikpayKey: "Ribica", Slugify: function(text) { + if(!text) { + text = ""; + } return text.toString().toLowerCase() .replace(/š/g,'s') .replace(/[čć]/g,'c')