mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: code cleanup
This commit is contained in:
parent
fde1c3fcbc
commit
10d118a554
@ -430,16 +430,9 @@ class PagesDescriptionViewSet(BaseViewSet):
|
|||||||
if page.description_binary:
|
if page.description_binary:
|
||||||
Y.apply_update(existing_doc, page.description_binary)
|
Y.apply_update(existing_doc, page.description_binary)
|
||||||
|
|
||||||
# # Load the new data into a separate YDoc
|
# Load the new data into a separate YDoc
|
||||||
# new_doc = Y.YDoc()
|
|
||||||
Y.apply_update(existing_doc, new_binary_data)
|
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
|
# # Encode the updated state as binary data
|
||||||
updated_binary_data = Y.encode_state_as_update(existing_doc)
|
updated_binary_data = Y.encode_state_as_update(existing_doc)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user