diff --git a/modules/ve-mw/ui/widgets/ve.ui.MWTocWidget.js b/modules/ve-mw/ui/widgets/ve.ui.MWTocWidget.js index 82311f8cb6..700bb3b74b 100644 --- a/modules/ve-mw/ui/widgets/ve.ui.MWTocWidget.js +++ b/modules/ve-mw/ui/widgets/ve.ui.MWTocWidget.js @@ -22,7 +22,7 @@ ve.ui.MWTocWidget = function VeUiMWTocWidget( surface, config ) { // Properties this.surface = surface; this.doc = surface.getModel().getDocument(); - this.metaList = surface.getModel().metaList; + this.metaList = this.doc.getMetaList(); // Topic level 0 lives inside of a toc item this.rootLength = 0; this.initialized = false;