diff options
author | Robert Jaros <rjaros@finn.pl> | 2020-05-10 00:40:58 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2020-05-10 00:40:58 +0200 |
commit | e1b6840c9beb82d8761aa0e9376b356d5f12fa79 (patch) | |
tree | 2ed780c2758fd2e178a67fde003d5df2b4cd2302 /kvision-modules/kvision-bootstrap-upload/src/main/kotlin | |
parent | 0f8aff227926c298107c149072f8dcb0bb5a1747 (diff) | |
download | kvision-e1b6840c9beb82d8761aa0e9376b356d5f12fa79.tar.gz kvision-e1b6840c9beb82d8761aa0e9376b356d5f12fa79.tar.bz2 kvision-e1b6840c9beb82d8761aa0e9376b356d5f12fa79.zip |
Add simplified version of FormPanel DSL builder function to easily create HTML form elements with attributes.
Diffstat (limited to 'kvision-modules/kvision-bootstrap-upload/src/main/kotlin')
-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") } /** |