From 782274f9ce2b1e1d5c2ff0c40f1080299b7643e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Wed, 26 Jul 2017 15:47:52 +0200 Subject: [PATCH] dont set opacity on graphnodes of other spaces --- src/c3nav/editor/static/editor/js/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c3nav/editor/static/editor/js/editor.js b/src/c3nav/editor/static/editor/js/editor.js index 7b34a555..3c7c9ced 100644 --- a/src/c3nav/editor/static/editor/js/editor.js +++ b/src/c3nav/editor/static/editor/js/editor.js @@ -402,7 +402,7 @@ editor = { style.color = '#ffffff'; } } else { - if (editor._sublevel_control.current_level_id !== feature.properties.level) { + if (feature.properties.level !== undefined && editor._sublevel_control.current_level_id !== feature.properties.level) { style.fillOpacity = 0.5; } }