修复无法切换模板分组BUG

This commit is contained in:
makejava 2021-09-06 09:10:43 +08:00
parent 382665ab22
commit a121a8a70e
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ public class TemplateSettingForm implements Configurable, BaseSettings {
// 复制配置防止篡改
this.templateGroupMap = CloneUtils.cloneByJson(settingsStorage.getTemplateGroupMap(), new TypeReference<Map<String, TemplateGroup>>() {
});
this.currTemplateGroup = this.templateGroupMap.get(settingsStorage.getCurrTypeMapperGroupName());
this.currTemplateGroup = this.templateGroupMap.get(settingsStorage.getCurrTemplateGroupName());
if (this.currTemplateGroup == null) {
this.currTemplateGroup = this.templateGroupMap.get(GlobalDict.DEFAULT_GROUP_NAME);
}