fix: url required issue.
All checks were successful
continuous-integration/drone/tag Build is passing
All checks were successful
continuous-integration/drone/tag Build is passing
This commit is contained in:
parent
f28cb759df
commit
73431c4f47
@ -76,7 +76,7 @@ class SelfossModel {
|
||||
)
|
||||
@Serializable
|
||||
data class SourceParams(
|
||||
val url: String?
|
||||
val url: String? = null
|
||||
)
|
||||
@Serializable
|
||||
data class Item(
|
||||
|
@ -20,7 +20,7 @@ fun SOURCE.toView(): SelfossModel.Source =
|
||||
this.spout,
|
||||
this.error,
|
||||
this.icon,
|
||||
SelfossModel.SourceParams(this.url)
|
||||
if (this.url != null) SelfossModel.SourceParams(this.url) else null
|
||||
)
|
||||
|
||||
fun SelfossModel.Source.toEntity(): SOURCE =
|
||||
|
Loading…
Reference in New Issue
Block a user