Library should not be clickable if spdx is blank
This commit is contained in:
parent
a25034b898
commit
72f054a4fa
|
@ -41,7 +41,7 @@ fun Library(
|
|||
showLicenseDialog: (licenseFilename: String) -> Unit,
|
||||
descriptionMaxLines: Int,
|
||||
) {
|
||||
val spdxLicense = library.licenses.firstOrNull()?.spdxId
|
||||
val spdxLicense = library.licenses.firstOrNull()?.spdxId?.takeIf { it.isNotBlank() }
|
||||
val licenseAssetPath = spdxLicense?.let { SPDX_ID_TO_ASSET_PATH[it] }
|
||||
val context = LocalContext.current
|
||||
|
||||
|
|
Loading…
Reference in New Issue