ve.ui.MWReferencesListDialog: Fix exception caused by a copy-paste mistake

Follow-up to cf95dbd4be.

Bug: T297418
Change-Id: I7c3970cf5a9b3632438e96513e9e983a5527aa21
This commit is contained in:
Bartosz Dziewoński 2021-12-09 20:53:50 +01:00
parent bee357337c
commit 90fb1eba04

View file

@ -125,7 +125,7 @@ ve.ui.MWReferencesListDialog.prototype.getActionProcess = function ( action ) {
if ( this.selectedNode ) { if ( this.selectedNode ) {
// Edit existing model // Edit existing model
var surfaceModel = this.getFragment().getDocument(); var surfaceModel = this.getFragment().getSurface();
var doc = surfaceModel.getDocument(); var doc = surfaceModel.getDocument();
if ( this.isModified() ) { if ( this.isModified() ) {