Browse Source

Cleaned up code for accepting short sources in gid

Removed an extraneous if statement
pull/574/head
Alec Vulfson 8 years ago
parent
commit
af723cd430
  1. 6
      sanitiser/_ids.js

6
sanitiser/_ids.js

@ -44,13 +44,9 @@ function sanitizeId(rawId, messages) {
messages.errors.push( targetError(layer, type_mapping.layers) );
return;
}
//converts the shortened source names to the full name
if(source !== type_mapping.source_mapping[source]){
source = type_mapping.source_mapping[source][0];
}
return {
source: source,
source: type_mapping.source_mapping[source][0],
layer: layer,
id: id,
};

Loading…
Cancel
Save