From The Document Foundation Wiki
How do I update a table of contents?
If you have added data that are not currently reflected in the table of contents, then:
- click inside the table of contents;
- right-click to display the contextual menu; and
- select Update Index/Table.
Alternative: without moving the cursor, menu▸ ▸ .