From 90f8f6cb487595c67cc5d33b755a2d6b8c90cc91 Mon Sep 17 00:00:00 2001 From: David Lynch Date: Fri, 26 Jan 2024 10:26:48 -0600 Subject: [PATCH] MWTocWidget should fetch the metaList from the correct location Follow-up to 7954f5897c652675589a74001a983e06395cfc3c Bug: T355944 Change-Id: I5070c7e958af918ffd5d5467219026ad114ca4a1 (cherry picked from commit d5cd77b254b99f92ebfc6f64060d83257e381a82) --- modules/ve-mw/ui/widgets/ve.ui.MWTocWidget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;