From d85b4a95f0a640b721fdfdc01b35b387672eed59 Mon Sep 17 00:00:00 2001 From: Paul Kerschen Date: Fri, 30 Jun 2017 12:17:43 -0700 Subject: [PATCH] COL-1082 Type check in assetViewRedirect --- public/app/assetlibrary/assetLibraryService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/assetlibrary/assetLibraryService.js b/public/app/assetlibrary/assetLibraryService.js index d0901fd7..350902e1 100644 --- a/public/app/assetlibrary/assetLibraryService.js +++ b/public/app/assetlibrary/assetLibraryService.js @@ -52,7 +52,7 @@ }; var assetViewRedirect = function(id) { - if (id.match(/^assetlibrary/)) { + if (_.isString(id) && id.match(/^assetlibrary/)) { // The `id` param is an Asset Library state name with // optional search criteria appended after colon var searchOptions = id.split(/:(.*)/)[1];