mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 20:59:35 +08:00
dont throw exception for unknown types
This commit is contained in:
@ -6,7 +6,7 @@ var index = [];
|
||||
function createPart(part): any {
|
||||
var def = index[part.type];
|
||||
if (!def) {
|
||||
throw { message: 'Could not find query part ' + part.type };
|
||||
return null;
|
||||
}
|
||||
|
||||
return new SqlPart(part, def);
|
||||
|
Reference in New Issue
Block a user