Replace _getChangeDetail with _reload
_getChangeDetail was performing an incomplete reload of the change, _reload fetches all pertinent information. Change-Id: Ib83c9a3b0976f07f972fbc9b24820525abc74ad5
This commit is contained in:
@@ -596,7 +596,7 @@
|
||||
},
|
||||
|
||||
_switchToMostRecentPatchNum: function() {
|
||||
this._getChangeDetail().then(function() {
|
||||
this._reload().then(function() {
|
||||
var patchNum = this._computeLatestPatchNum(this._allPatchSets);
|
||||
if (patchNum !== this._patchRange.patchNum) {
|
||||
this._changePatchNum(patchNum);
|
||||
|
||||
@@ -97,6 +97,7 @@ limitations under the License.
|
||||
actions: {},
|
||||
};
|
||||
|
||||
sandbox.stub(element.$.actions, 'reload');
|
||||
sandbox.stub(element.$.restAPI, '_getChangeDetail', function() {
|
||||
// Mock change obj.
|
||||
return Promise.resolve({
|
||||
|
||||
Reference in New Issue
Block a user