Mercurial > gemma
diff client/src/components/identify/formatter.js @ 4286:1604284d2597
Client: Avoid output of primary key for fd in feature info.
author | Raimund Renkert <raimund@renkert.org> |
---|---|
date | Fri, 30 Aug 2019 09:29:58 +0200 |
parents | 57c38087fe18 |
children | ad271887fd8d |
line wrap: on
line diff
--- a/client/src/components/identify/formatter.js Fri Aug 30 09:29:19 2019 +0200 +++ b/client/src/components/identify/formatter.js Fri Aug 30 09:29:58 2019 +0200 @@ -53,7 +53,13 @@ } }, fairway_dimensions: { - label: app.$gettext("Fairway Dimensions") + label: app.$gettext("Fairway Dimensions"), + props: p => { + let propsToRemove = ["id"]; + if (propsToRemove.indexOf(p.key) !== -1) return null; + + return p; + } }, waterway_area: { label: app.$gettext("Waterway Area")