From 48b9db41e349e930c44d2a747211ccf1bb02b075 Mon Sep 17 00:00:00 2001 From: Hyowoo Kim Date: Tue, 8 Nov 2022 18:06:06 +0900 Subject: [PATCH] fix merge conflict --- .../src/main/kotlin/dev/yorkie/examples/KanbanBoardViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/src/main/kotlin/dev/yorkie/examples/KanbanBoardViewModel.kt b/examples/src/main/kotlin/dev/yorkie/examples/KanbanBoardViewModel.kt index d2516db28..5906d8c61 100644 --- a/examples/src/main/kotlin/dev/yorkie/examples/KanbanBoardViewModel.kt +++ b/examples/src/main/kotlin/dev/yorkie/examples/KanbanBoardViewModel.kt @@ -36,7 +36,7 @@ class KanbanBoardViewModel : ViewModel() { client.collect { if (it is Client.Event.DocumentSynced) { try { - updateDocument(it.value.document.getRoot().getAs(DOCUMENT_LIST_KEY)) + updateDocument(it.result.document.getRoot().getAs(DOCUMENT_LIST_KEY)) } catch (e: Exception) { document.updateAsync { jsonObject -> jsonObject.setNewArray(DOCUMENT_LIST_KEY)