From 9be3ace356799bc023d08048381c41db2f2e559b Mon Sep 17 00:00:00 2001 From: d1snin Date: Fri, 10 Nov 2023 17:59:34 +0300 Subject: [PATCH] fix: attempt to fix content update handling --- .../dev/d1s/beam/ui/component/BlockContainerComponent.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/beam-ui/src/jsMain/kotlin/dev/d1s/beam/ui/component/BlockContainerComponent.kt b/beam-ui/src/jsMain/kotlin/dev/d1s/beam/ui/component/BlockContainerComponent.kt index 963ead77..21907c6c 100644 --- a/beam-ui/src/jsMain/kotlin/dev/d1s/beam/ui/component/BlockContainerComponent.kt +++ b/beam-ui/src/jsMain/kotlin/dev/d1s/beam/ui/component/BlockContainerComponent.kt @@ -63,7 +63,10 @@ class BlockContainerComponent : Component(), KoinComponent { div(className = "container-fluid px-0 d-flex justify-content-center") { vPanel(className = "w-100") { val batches = change.blocks.splitIntoBatches() - processBatches(batches, change) + + if (batches.isNotEmpty()) { + processBatches(batches, change) + } } } }