MWTocWidget should fetch the metaList from the correct location

Follow-up to 7954f5897c

Bug: T355944
Change-Id: I5070c7e958af918ffd5d5467219026ad114ca4a1
(cherry picked from commit d5cd77b254)
This commit is contained in:
David Lynch 2024-01-26 10:26:48 -06:00 committed by Lens0021
parent e8fb5d8442
commit 90f8f6cb48

View file

@ -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;