You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by jo...@apache.org on 2023/03/26 19:44:04 UTC

[causeway] 01/03: ISIS-3171 cleanup CollectionDM

This is an automated email from the ASF dual-hosted git repository.

joergrade pushed a commit to branch ISIS-3171
in repository https://gitbox.apache.org/repos/asf/causeway.git

commit 687bfa47c3af4c60f1caf82a86fb7bbf6c187780
Author: Jörg Rade <jo...@kuehne-nagel.com>
AuthorDate: Wed Mar 1 08:38:32 2023 +0100

    ISIS-3171 cleanup CollectionDM
---
 .../apache/causeway/client/kroviz/core/model/CollectionDM.kt   | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/incubator/clients/kroviz/src/main/kotlin/org/apache/causeway/client/kroviz/core/model/CollectionDM.kt b/incubator/clients/kroviz/src/main/kotlin/org/apache/causeway/client/kroviz/core/model/CollectionDM.kt
index c6681327d1..1f1f47c6c5 100644
--- a/incubator/clients/kroviz/src/main/kotlin/org/apache/causeway/client/kroviz/core/model/CollectionDM.kt
+++ b/incubator/clients/kroviz/src/main/kotlin/org/apache/causeway/client/kroviz/core/model/CollectionDM.kt
@@ -71,12 +71,10 @@ class CollectionDM(override var title: String) : DisplayModelWithLayout() {
     }
 
     override fun addData(obj: TransferObject) {
-        //TODO is checking rawdata really needed?
-        if (!rawData.contains(obj)) {
-            rawData.add(obj)
-            val exo = Exposer(obj as TObject)
-            data.add(exo.dynamise())  //if exposer is not dynamised, data access in Tabulator tables won't work
-        }
+        rawData.add(obj)
+        val exo = Exposer(obj as TObject)
+        //if exposer is not dynamised, data access in Tabulator tables won't work
+        data.add(exo.dynamise() as Exposer)
     }
 
     override fun reset() {