Skip to content

Commit 8396878

Browse files
committed
[FIX] web_editor: comment about get_missing_steps return value
The comment that describe the `missingSteps === -1 || !missingSteps.length` condition was wrong. task-3217719 Part-of: odoo#114481
1 parent acb58f9 commit 8396878

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

addons/web_editor/static/src/js/wysiwyg/wysiwyg.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,8 +673,10 @@ const Wysiwyg = Widget.extend({
673673
},
674674
{ transport: 'rtc' }
675675
);
676+
// If missing steps === -1, it means that either the
677+
// step.clientId has a stale document or the step.clientId has a
678+
// snapshot and does not includes the step in its history.
676679
if (missingSteps === -1 || !missingSteps.length) {
677-
// This case should never happen.
678680
console.warn('Editor get_missing_steps result is erroneous.');
679681
return;
680682
}

0 commit comments

Comments
 (0)