Fix(Tool): Fixed the bug of getting tool exception when tool desc is null

This commit is contained in:
2024-07-17 15:37:02 +08:00
parent d84427b039
commit a85e561863
3 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ data class Tool(
val platform: Platform,
val description: String,
val description: String? = null,
val base: String? = null,

View File

@@ -18,7 +18,7 @@ data class ToolVo(
val platform: ToolBaseVo.Platform,
val description: String,
val description: String? = null,
val base: ToolBaseVo? = null,

View File

@@ -49,7 +49,7 @@ fun ToolCard(
ToolInfo(
toolName = tool.name,
toolId = tool.toolId,
toolDesc = tool.description
toolDesc = tool.description ?: ""
)
Spacer(modifier = Modifier.height(16.dp))
AuthorInfo(