So I was following the official Affinity Publisher tutorials and wanted to check out the table of contents feature. On the tutorial video there were page numbers displayed on the right of each heading title in the generated table of contents but that didn't work in my document. I wasn't using document default Heading 1 text styles but my own custom defined style to match the headings. Might also add that page numbers are working as expected and displayed correctly on each page. I am using Affinity Publisher 1.7.0.312 (Beta) for Windows. Here's a screenshot of the table of contents generated in my document: