From 79ab76489b07e42de53142fab5320f83f9ea02af Mon Sep 17 00:00:00 2001 From: NeonKirill <74428618+NeonKirill@users.noreply.github.com> Date: Sat, 14 Dec 2024 12:54:27 +0100 Subject: [PATCH] Fixed issue with creation of the new conversation (#119) --- chat_client/static/js/base_utils.js | 6 ++++++ chat_client/static/js/chat_utils.js | 11 ++--------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/chat_client/static/js/base_utils.js b/chat_client/static/js/base_utils.js index 308a3ea3..6ba06307 100644 --- a/chat_client/static/js/base_utils.js +++ b/chat_client/static/js/base_utils.js @@ -33,6 +33,12 @@ function displayAlert(parentElem,text='Error Occurred',alertType='danger',alertI alert.remove(); } + if(!alertBehaviorProperties){ + alertBehaviorProperties = { + 'type': alertBehaviors.AUTO_EXPIRE, + } + } + if(text) { parentElem.insertAdjacentHTML('afterbegin', `