From f8e26dc42f8d8654f02889e143bd2664054d7df8 Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Mon, 29 Nov 2021 16:37:57 +0800 Subject: [PATCH] Feature tab will not be rendered if there is no item to show --- .../Volo/Abp/FeatureManagement/FeatureAppService.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/feature-management/src/Volo.Abp.FeatureManagement.Application/Volo/Abp/FeatureManagement/FeatureAppService.cs b/modules/feature-management/src/Volo.Abp.FeatureManagement.Application/Volo/Abp/FeatureManagement/FeatureAppService.cs index ef5b059b0d..7c9fad84b2 100644 --- a/modules/feature-management/src/Volo.Abp.FeatureManagement.Application/Volo/Abp/FeatureManagement/FeatureAppService.cs +++ b/modules/feature-management/src/Volo.Abp.FeatureManagement.Application/Volo/Abp/FeatureManagement/FeatureAppService.cs @@ -73,7 +73,10 @@ namespace Volo.Abp.FeatureManagement SetFeatureDepth(groupDto.Features, providerName, providerKey); - result.Groups.Add(groupDto); + if (groupDto.Features.Any()) + { + result.Groups.Add(groupDto); + } } return result;