prevent possible error when new-typed visualizations are saved

This commit is contained in:
Spencer Alger 2014-09-30 11:39:32 -07:00
parent ebf07f39b6
commit fecc255198

View file

@ -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;
}