patrikzudel/PatrikZeros-ChatGPT-API-UI

Unable to close a chat session unless another chat session exists

Closed this issue · 1 comments

  • I have read all open and closed Issues and confirm that this is not a duplicate.

PROBLEM

The chats from the chat pane can only be closed if another chat exists. So if you have only 1 active chat in the pane, you will have to click on new chat to spawn a new chat and only then will you be able to close the old one.

STEPS TO REPRODUCE

Steps to reproduce the behavior:

  1. Delete all chat sessions
  2. Try to click on x to close the last remaining chat
  3. Action cannot be performed
  4. Click on new chat to spawn a new session
  5. Now the x can be clicked on the old chat to close it

EXPECTED BEHAVIOUR

When you try close the last remaining chat session, it should allow the action and start a new empty chat instead

SCREENSHOT

Screenshot (9)

Good suggestion, fixed!