From ddae6641b3a99aa2cd732888252969f51d30647a Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Tue, 30 Apr 2019 09:42:24 -0700 Subject: [PATCH] Fix issue where preset list would not appear when adding new features (close #6271) --- modules/ui/inspector.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/ui/inspector.js b/modules/ui/inspector.js index d0fb78e42..bce4f9479 100644 --- a/modules/ui/inspector.js +++ b/modules/ui/inspector.js @@ -54,8 +54,7 @@ export function uiInspector(context) { (!hasNonGeometryTags && !entity.isHighwayIntersection(context.graph())); var issues = context.validator().getEntityIssues(_entityID); // start with the preset list if the feature is new and untagged or is an uninteresting vertex - var showPresetList = issues.length === 0 && - ((newFeature && !hasNonGeometryTags) || isTaglessOrIntersectionVertex); + var showPresetList = (newFeature && !hasNonGeometryTags) || (isTaglessOrIntersectionVertex && !issues.length); if (showPresetList) { wrap.style('right', '-100%');