mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3462 Primitives | Update local properties after remove from Type command (#2293)
This commit is contained in:
parent
dd34f20883
commit
070b6a4921
1 changed files with 7 additions and 2 deletions
|
@ -884,9 +884,11 @@ class ObjectTypeViewModel(
|
|||
setObjectListIsArchived.async(params).fold(
|
||||
onSuccess = {
|
||||
Timber.d("Property $propertyId moved to bin")
|
||||
proceedWithGetObjectTypeConflictingFields()
|
||||
},
|
||||
onFailure = {
|
||||
Timber.e(it, "Error while moving property $propertyId to bin")
|
||||
proceedWithGetObjectTypeConflictingFields()
|
||||
}
|
||||
)
|
||||
}
|
||||
|
@ -970,9 +972,11 @@ class ObjectTypeViewModel(
|
|||
setObjectDetails.async(params).fold(
|
||||
onSuccess = {
|
||||
Timber.d("Properties updated")
|
||||
proceedWithGetObjectTypeConflictingFields()
|
||||
},
|
||||
onFailure = {
|
||||
Timber.e(it, "Error while updating properties")
|
||||
proceedWithGetObjectTypeConflictingFields()
|
||||
}
|
||||
)
|
||||
}
|
||||
|
@ -1017,8 +1021,9 @@ class ObjectTypeViewModel(
|
|||
spaceId = vmParams.spaceId.id
|
||||
)
|
||||
).fold(
|
||||
onSuccess = { fields ->
|
||||
_objectTypeConflictingFieldIds.value = fields
|
||||
onSuccess = { properties ->
|
||||
Timber.d("Conflicting properties: $properties")
|
||||
_objectTypeConflictingFieldIds.value = properties
|
||||
},
|
||||
onFailure = {
|
||||
Timber.e(it, "Error while getting conflicting fields")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue