changeset 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 6b415dcdaf8a
children 69f46e9c44e2
files client/src/components/identify/formatter.js
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
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")