mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Fix issue with showing the preset list programmatically
This commit is contained in:
@@ -101,7 +101,10 @@ export function uiInspector(context) {
|
||||
if (!preset) {
|
||||
if (_entityIDs.length !== 1) return;
|
||||
|
||||
preset = context.presets().match(_entityIDs[0], context.graph());
|
||||
var entity = context.hasEntity(_entityIDs[0]);
|
||||
if (!entity) return;
|
||||
|
||||
preset = context.presets().match(entity, context.graph());
|
||||
}
|
||||
|
||||
wrap.transition()
|
||||
|
||||
Reference in New Issue
Block a user