Trying to fix an error due to which the new post is not rendering correctly.