aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-select-remote/src/main/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'kvision-modules/kvision-select-remote/src/main/kotlin')
-rw-r--r--kvision-modules/kvision-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/RemoteSelectInput.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/kvision-modules/kvision-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/RemoteSelectInput.kt b/kvision-modules/kvision-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/RemoteSelectInput.kt
index 1a0fb3fb..ff1b04f4 100644
--- a/kvision-modules/kvision-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/RemoteSelectInput.kt
+++ b/kvision-modules/kvision-select-remote/src/main/kotlin/pl/treksoft/kvision/form/select/RemoteSelectInput.kt
@@ -35,7 +35,6 @@ import pl.treksoft.kvision.remote.KVServiceManager
import pl.treksoft.kvision.remote.RemoteSelectOption
import pl.treksoft.kvision.utils.JSON
import pl.treksoft.kvision.utils.obj
-import kotlin.js.JSON as NativeJSON
external fun decodeURIComponent(encodedURI: String): String
@@ -61,8 +60,8 @@ open class RemoteSelectInput<T : Any>(
) : SelectInput(null, value, multiple, null, classes) {
init {
val (url, method) =
- serviceManager.getCalls()[function.toString().replace("\\s".toRegex(), "")]
- ?: throw IllegalStateException("Function not specified!")
+ serviceManager.getCalls()[function.toString().replace("\\s".toRegex(), "")]
+ ?: throw IllegalStateException("Function not specified!")
val data = obj {
q = "{{{q}}}"
}