Commit 90c0eee6 authored by Nina Willems's avatar Nina Willems

[client/timeserie] info stations

parent f8af4f84
......@@ -164,8 +164,8 @@ const messages = {
},
//piezzo
RefCP: {
fr: 'Adresse: rue + CP + commune',
Adress: {
fr: 'Adresse',
nl: '', //nltodo
},
......@@ -222,6 +222,28 @@ const messages = {
fr: 'en cours',
nl: '' //nltodo,
},
MonFreq: {
fr: 'Fréquence de mesure',
nl: '' // nltodo
},
// ESO°Qual
TypeOuvrage: {
fr: 'Type d\'ouvrage',
nl: '' //nltodo
},
RefOuvrage: {
fr: 'Référence ouvrage auto',
nl: '' //nltodo
},
NCode: {
fr: 'Code',
nl: '' //nltodo,
},
Comment: {
fr: 'Commentaire',
nl: '' //nltodo,
},
StationName: {
fr: 'Nom du site',
......
......@@ -30,7 +30,10 @@ export const getFeatureCollectionGQuantity = () => fromNullable(query('data/laye
export const getFeature = (id: string | number, fcOpt: Option<FeatureCollection>) => {
const strId = (typeof id === "string") ? id : id.toString();
return fcOpt.chain(fc => fromNullable(fc.features.find(f => f.id === strId)));
return fcOpt.chain(fc => fromNullable(fc.features.find(f => {
const strFeatureId = (typeof f.id === "string") ? f.id : f.id.toString();
return strFeatureId === strId;
})));
}
export const getCurrentFeature = () => {
......
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