From 3cd7b3762ef0171972b4d8da19fb59b8a772a442 Mon Sep 17 00:00:00 2001 From: Aleksei Pavlov Date: Sun, 21 Jun 2026 21:44:53 +0300 Subject: [PATCH] =?UTF-8?q?fix(AutogenPanel):=20pendingQueue=20=E2=80=94?= =?UTF-8?q?=20=D1=83=D0=B1=D1=80=D0=B0=D0=BB=20=D1=84=D0=B8=D0=BB=D1=8C?= =?UTF-8?q?=D1=82=D1=80=20status=3Dpending?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit queue теперь содержит articles со status=draft (не старая content_queue). Фильтр .filter(q => q.status === 'pending') обнулял массив → блок 'Планируется завтра' всегда показывал пустое состояние. --- components/admin/AutogenPanel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/admin/AutogenPanel.js b/components/admin/AutogenPanel.js index e3e648b..0973dc5 100644 --- a/components/admin/AutogenPanel.js +++ b/components/admin/AutogenPanel.js @@ -204,7 +204,8 @@ export default function AutogenPanel({ status, queue, topics, categories = [] }) router.refresh(); } - const pendingQueue = queue.filter(q => q.status === 'pending'); + // queue теперь = черновики статей (status='draft'), не старая content_queue + const pendingQueue = Array.isArray(queue) ? queue : []; return (