remove customize button if no body parts are available

This commit is contained in:
Hanusiak Piotr
2022-03-09 12:45:04 +01:00
parent 674c5bdeb8
commit e5095db048
4 changed files with 25 additions and 5 deletions
@@ -88,6 +88,9 @@ export class PlayerTextures {
private getMappedResources(category: PlayerTexturesCategory): BodyResourceDescriptionListInterface {
const resources: BodyResourceDescriptionListInterface = {};
if (!category) {
return {};
}
for (const collection of category.collections) {
for (const texture of collection.textures) {
resources[texture.id] = { id: texture.id, label: texture.name, img: texture.url };