manager: Fix missing template author

This commit is contained in:
weishu
2023-10-21 15:38:17 +08:00
parent df8c91b306
commit 06fdae18d2

View File

@@ -165,6 +165,7 @@ private fun fromJSON(templateJson: JSONObject): TemplateViewModel.TemplateInfo?
val templateInfo = TemplateViewModel.TemplateInfo( val templateInfo = TemplateViewModel.TemplateInfo(
id = templateJson.getString("id"), id = templateJson.getString("id"),
name = templateJson.getString("name"), name = templateJson.getString("name"),
author = templateJson.optString("author"),
description = templateJson.getString("description"), description = templateJson.getString("description"),
local = templateJson.optBoolean("local"), local = templateJson.optBoolean("local"),
namespace = Natives.Profile.Namespace.valueOf( namespace = Natives.Profile.Namespace.valueOf(