Fix weak preset check

This commit is contained in:
Quincy Morgan
2020-02-03 13:58:34 -05:00
parent 3370bea588
commit 13d8c078b4
+1 -1
View File
@@ -525,7 +525,7 @@ export function uiEntityEditor(context) {
var weakPreset = _activePresets.length === 1 &&
Object.keys(_activePresets[0].addTags || {}).length === 0;
// Don't replace a weak preset with a fallback preset (e.g. "Point")
if (weakPreset && matches.length === 0 && matches[0].isFallback()) return;
if (weakPreset && matches.length === 1 && matches[0].isFallback()) return;
entityEditor.presets(matches);
}