diff options
Diffstat (limited to 'kvision-tools/kvision-compiler-plugin/src')
-rw-r--r-- | kvision-tools/kvision-compiler-plugin/src/main/kotlin/pl/treksoft/kvision/plugin/KVProcessor.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kvision-tools/kvision-compiler-plugin/src/main/kotlin/pl/treksoft/kvision/plugin/KVProcessor.kt b/kvision-tools/kvision-compiler-plugin/src/main/kotlin/pl/treksoft/kvision/plugin/KVProcessor.kt index d456ceb7..00208266 100644 --- a/kvision-tools/kvision-compiler-plugin/src/main/kotlin/pl/treksoft/kvision/plugin/KVProcessor.kt +++ b/kvision-tools/kvision-compiler-plugin/src/main/kotlin/pl/treksoft/kvision/plugin/KVProcessor.kt @@ -125,7 +125,11 @@ class KVProcessor : AbstractProcessor() { when { it.returnType.toString().startsWith("RemoteData") -> appendln(" bindTabulatorRemote($iName::${it.name}, $route)") - wsMethod -> appendln(" bind($iName::${it.name}, $route)") + wsMethod -> if (route == null) { + appendln(" bind($iName::${it.name}, null as String)") + } else { + appendln(" bind($iName::${it.name}, $route)") + } else -> appendln(" bind($iName::${it.name}, $method, $route)") } } |