There are times when you don’t need IDs on every heading of one particular post or page. This will prevent heading ids from being pushed where there is no table of contents.
Navigate to the post and go to the editing mood >> Scroll down to the bottom
There you will find an option called disable TOP TOC auto insert Heading ID option.
Turn that ON.