Any changes made on the Google Docs headings don’t reflect automatically in the table of contents. But, you can click the “Update Table of Contents” button (looks like the "Refresh" icon). The changes created on the headings will then reflect in the table of contents as well.