1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-10 10:00:44 +09:00

DROID-916 Editor | Fix | Relation status disappears (#2897)

This commit is contained in:
Konstantin Ivanov 2023-02-07 12:31:02 +01:00 committed by uburoiubu
parent bcd93c78b6
commit 3a5c484953

View file

@ -262,7 +262,7 @@ object StatusParser {
fun parse(value: Any?): Id? {
val result: Id? = when (value) {
is Id -> value
is List<*> -> value.firstOrNull().toString()
is List<*> -> value.typeOf<Id>().firstOrNull()
else -> null
}
return result