DROID-2079 Set | Fix | Proper type of prefilled timestamp (#784)
This commit is contained in:
parent
be1a703ebe
commit
dacaa6023e
|
@ -125,7 +125,7 @@ class CreateDataViewObject @Inject constructor(
|
|||
dateProvider = dateProvider
|
||||
)
|
||||
if (updatedValue != null) {
|
||||
put(filter.relation, "$updatedValue")
|
||||
put(filter.relation, updatedValue.toDouble())
|
||||
}
|
||||
}
|
||||
else -> {
|
||||
|
|
|
@ -529,7 +529,7 @@ class CreateDataViewObjectUseCaseTest {
|
|||
val expected = Command.CreateObject(
|
||||
template = template,
|
||||
prefilled = mapOf(
|
||||
filterDate.key to (expectedValue?.toString() ?: timestamp.toString()),
|
||||
filterDate.key to (expectedValue?.toDouble() ?: timestamp.toDouble()),
|
||||
),
|
||||
internalFlags = listOf(InternalFlags.ShouldSelectTemplate),
|
||||
space = SpaceId(spaceId),
|
||||
|
|
Loading…
Reference in New Issue
Block a user