Skip to content

Commit

Permalink
Fix review window on editor loading
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Feb 15, 2024
1 parent 1cc2ef2 commit c80d3b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/common/main/lib/controller/ReviewChanges.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ define([
isReviewOnly: false,
isFormsOnly: false,
isCommentsOnly: false
}
},
sdkchange: null
};

Common.NotificationCenter.on('reviewchanges:turn', this.onTurnPreview.bind(this));
Expand Down Expand Up @@ -238,6 +239,7 @@ define([
onApiShowChange: function (sdkchange, isShow) {
var btnlock = true,
changes;
this._state.sdkchange = sdkchange;
if (this.appConfig.canReview && !(this.appConfig.isReviewOnly || this._state.docProtection.isReviewOnly)) {
if (sdkchange && sdkchange.length>0) {
changes = this.readSDKChange(sdkchange);
Expand Down Expand Up @@ -1003,6 +1005,7 @@ define([
me.appConfig.reviewHoverMode = val;

me.view && me.view.onAppReady(config);
me._state.sdkchange && me.onApiShowChange(me._state.sdkchange, true);
});
},

Expand Down

0 comments on commit c80d3b6

Please sign in to comment.