fix: preserve large Unicode drafts with bounded keepalive transport
This commit is contained in:
@@ -299,7 +299,7 @@ export default function ContextEditor({
|
||||
draft_sequence: savedSequence,
|
||||
},
|
||||
'POST',
|
||||
draftBody.length < 60000,
|
||||
true,
|
||||
),
|
||||
)
|
||||
.then(() => {
|
||||
@@ -318,8 +318,7 @@ export default function ContextEditor({
|
||||
const body = latestDraft.current;
|
||||
if (
|
||||
!awaitingSavedContext.current &&
|
||||
body !== confirmedDraftBody.current &&
|
||||
body.length < 60000
|
||||
body !== confirmedDraftBody.current
|
||||
)
|
||||
void contextApi(
|
||||
'/investimentos/' + initial.case.id + '/contexto/rascunho',
|
||||
|
||||
Reference in New Issue
Block a user