My chat history just deleted itself after editing a prompt

If anyone can help me with this, I would honestly appreciate it so much. The situation is when I edit a prompt, all of the chat history of that chat I was having deletes itself and I don’t know hoe to get it back. It really annoys me as I loose chats and it makes me seriously mad.

Thanks for the help if there is any.