Get the Correct List for the Spfx ListView Extension

Senior Member



When using 

in a spfx ListView extension it references the list when you open the listname/AllItems.aspx 
When you put a list web part in another page with the list toolbar visible the extension buttons show up, but then 
this.context.pageContext.legacyPageContext.list reference the SitePages library and not the list the extension is supposed to do operations on.
How to get the correct list?
0 Replies