Skip to content

Commit

Permalink
Merge pull request #577 from paulkerschen/qa-col-1082
Browse files Browse the repository at this point in the history
[QA] COL-1082 Type check in assetViewRedirect
  • Loading branch information
johncrossman authored Jun 30, 2017
2 parents 9085fa6 + d85b4a9 commit a0f36ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/app/assetlibrary/assetLibraryService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit a0f36ce

Please sign in to comment.