Skip to content

Commit

Permalink
fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
LevanovaElena committed Oct 26, 2023
1 parent 76324b2 commit ce96025
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/chat-list/chat-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export class ChatList extends Block {
labelText: 'Title Chat',
okText: 'Add Chat',
ref: "modal",
okClick: (result: string) => {
okClick: (result?: string) => {
if(!result)return;
createChat(result)
.then(async () => await updateChats())
.catch((error)=>console.warn(error));
Expand Down

0 comments on commit ce96025

Please sign in to comment.