diff options
Diffstat (limited to 'kvision-modules/kvision-bootstrap-upload/src/main/kotlin/pl')
-rw-r--r-- | kvision-modules/kvision-bootstrap-upload/src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvision-modules/kvision-bootstrap-upload/src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt b/kvision-modules/kvision-bootstrap-upload/src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt index bdae5091..e1678e90 100644 --- a/kvision-modules/kvision-bootstrap-upload/src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt +++ b/kvision-modules/kvision-bootstrap-upload/src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt @@ -61,7 +61,7 @@ suspend fun <K : Any> Form<K>.getDataWithFileContent(): K { value.getValue() } }) - return this.modelFactory(map.withDefault { null }) + return this.modelFactory?.invoke(map.withDefault { null }) ?: throw IllegalStateException("Serializer not defined") } /** |