Template Editor resets to default on restart

Seems as of late the Template Editor resets itself to the default upon a restart. Is this a new ‘feature’ and can it be disabled? It’s annoying to lose template code that I’m currently working on every time Home Assistant is restarted.