From fbc91f541e94cee2a7cd904a433fda5bc5993e2d Mon Sep 17 00:00:00 2001 From: vmonakhov Date: Tue, 17 Dec 2024 14:11:50 +0300 Subject: [PATCH] cleanup --- src/components/LexicalEntryCorp/Text.js | 2 +- src/components/LexicalEntryCorp/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/LexicalEntryCorp/Text.js b/src/components/LexicalEntryCorp/Text.js index 7a87c0d9..9e08ab80 100644 --- a/src/components/LexicalEntryCorp/Text.js +++ b/src/components/LexicalEntryCorp/Text.js @@ -161,7 +161,7 @@ const TextEntityContent = ({ const selectedText = browserSelection.selectedText; var selected_action = null; - const selected_markups = [[]]; + const selected_markups = []; const selected_groups = []; // 'markups' variable has the following format: diff --git a/src/components/LexicalEntryCorp/index.js b/src/components/LexicalEntryCorp/index.js index 18b85c12..d270d90a 100644 --- a/src/components/LexicalEntryCorp/index.js +++ b/src/components/LexicalEntryCorp/index.js @@ -68,7 +68,7 @@ const removeEntityMutation = gql` `; const updateEntityMutation = gql` - mutation updateEntity($id: LingvodocID!, $content: String!, $markups: [[LingvodocID]]) { + mutation updateEntity($id: LingvodocID!, $content: String!, $markups: [ObjectVal]) { update_entity_content(id: $id, content: $content, markups: $markups) { triumph }