Fixed non-prefix path

This commit is contained in:
sunarya-thito 2021-09-14 19:05:04 +07:00
parent d61cd57979
commit d82206480e

View File

@ -62,7 +62,7 @@ public class KeyCompletionProvider extends CompletionProvider<CompletionParamete
if (node.isLeaf() && !node.getKey().equals(LocalizedNode.ROOT_KEY)) { if (node.isLeaf() && !node.getKey().equals(LocalizedNode.ROOT_KEY)) {
String value = node.getValue().get(locale); String value = node.getValue().get(locale);
map.put(path, value); map.put(path, value);
if (prefix != null) { if (prefix != null && !prefix.isEmpty()) {
map.put(prefix + "." + path, value); map.put(prefix + "." + path, value);
} }
} else { } else {