Fixed deserializing empty enumsString
This commit is contained in:
parent
7580c57433
commit
37b6310ad0
|
@ -214,7 +214,7 @@ open class SqliteBankingRepository(
|
|||
enums.joinToString(",") { it.name }
|
||||
|
||||
private fun <E : Enum<E>> mapEnumSet(enumsString: String, values: EnumEntries<E>): Set<E> =
|
||||
enumsString.split(',').map { mapToEnum(it, values) }.toSet()
|
||||
enumsString.split(',').filterNot { it.isBlank() }.map { mapToEnum(it, values) }.toSet()
|
||||
|
||||
@JvmName("mapIntNullable")
|
||||
@JsName("mapIntNullable")
|
||||
|
|
Loading…
Reference in New Issue