Skip to content

Commit

Permalink
prevent possible error when new-typed visualizations are saved
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer Alger committed Sep 30, 2014
1 parent ebf07f3 commit fecc255
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ define(function (require) {
catch (e) { /* missing typename handled below */ }
}

if (!typeName) {
if (!typeName || !visTypes.byName[typeName]) {
notify.info('unable to detect type from visualization source', hit);
return;
}
Expand Down

0 comments on commit fecc255

Please sign in to comment.