Commit e80a53d5 authored by ndurand's avatar ndurand
Browse files

correction post process

parent 82dbd23d
......@@ -114,7 +114,7 @@ export class DataService {
const regex = new RegExp('[{}]', 'g');
data.features.forEach((feature, index) => {
structuresFilter.forEach(filter => {
if (feature.properties[filter.column_name]) {
if (feature.properties[filter.column_name] && typeof feature.properties[filter.column_name] === 'string') {
// conversion des tableaux sql '{}' en tableaux javascript []
data.features[index].properties[filter.column_name] = feature.properties[filter.column_name].replace(regex, '').split(',');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment