From 10d118a554e8e7a18c285fc5eb25cbc6433a8be3 Mon Sep 17 00:00:00 2001 From: NarayanBavisetti Date: Wed, 15 May 2024 17:03:44 +0530 Subject: [PATCH] fix: code cleanup --- apiserver/plane/app/views/page/base.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/apiserver/plane/app/views/page/base.py b/apiserver/plane/app/views/page/base.py index 82441d35c..1b43e1431 100644 --- a/apiserver/plane/app/views/page/base.py +++ b/apiserver/plane/app/views/page/base.py @@ -430,16 +430,9 @@ class PagesDescriptionViewSet(BaseViewSet): if page.description_binary: Y.apply_update(existing_doc, page.description_binary) - # # Load the new data into a separate YDoc - # new_doc = Y.YDoc() + # Load the new data into a separate YDoc Y.apply_update(existing_doc, new_binary_data) - # # Merge the new data into the existing data - # # This will automatically resolve any conflicts - # new_state_vector = Y.encode_state_vector(new_doc) - # diff = Y.encode_state_as_update(existing_doc, new_state_vector) - # Y.apply_update(existing_doc, diff) - # # Encode the updated state as binary data updated_binary_data = Y.encode_state_as_update(existing_doc)