summaryrefslogtreecommitdiff
path: root/sw-ui/src
diff options
context:
space:
mode:
Diffstat (limited to 'sw-ui/src')
-rw-r--r--sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt b/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt
index ab3daf6e..7869198f 100644
--- a/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt
+++ b/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt
@@ -143,11 +143,11 @@ fun RBuilder.bpNonIdealState(
block: RHandler<INonIdealStateProps> = {},
): ReactElement = child(NonIdealState::class) {
attrs {
- this.icon = icon
- this.title = title
- this.description = description
- this.action = action
- this.children = children
+ icon?.let { this.icon = it }
+ title?.let { this.title = it }
+ description?.let { this.description = it }
+ action?.let { this.action = it }
+ children?.let { this.children = it }
}
block()
}
bgstack15