diff --git a/backend/static/js/components/chatListFilter.js b/backend/static/js/components/chatListFilter.js index 913dd6fe..01c8bc2c 100644 --- a/backend/static/js/components/chatListFilter.js +++ b/backend/static/js/components/chatListFilter.js @@ -32,7 +32,7 @@ export function initChatListFilter(options = {}) { const labels = document.querySelectorAll(filterSelector); if (!search || !labels.length) { - console.warn(`ChatListFilter: elements not found`); + // Тихо выходим если не на странице чатов return null; } diff --git a/backend/static/js/components/chatListRealtime.js b/backend/static/js/components/chatListRealtime.js index c22d0854..4f5d7822 100644 --- a/backend/static/js/components/chatListRealtime.js +++ b/backend/static/js/components/chatListRealtime.js @@ -24,7 +24,7 @@ export function initChatListRealtime(options = {}) { // Проверяем наличие списка чатов const listAny = document.querySelector(chatRowSelector); if (!listAny) { - console.warn('ChatListRealtime: no chat rows found, skipping'); + // Тихо выходим если не на странице чатов return null; }