diff --git a/src/command.ts b/src/command.ts index 8825b6e..2ad3c09 100644 --- a/src/command.ts +++ b/src/command.ts @@ -43,7 +43,7 @@ namespace Private { return { Name: newName('GLTF', model), //@ts-expect-error wip - Object: selected.length > 0 ? selected[0] : objects[0].name ?? '', + Object: selected.length > 0 ? selected[0] : (objects[0].name ?? ''), Enabled: true }; },