From b086ff45131432bd46b647c111d7e68da4775a28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F=D1=81=20=D0=A1=D1=83=D0=BB=D1=82?= =?UTF-8?q?=D0=B0=D0=BD=D0=BE=D0=B2?= Date: Tue, 21 Jul 2026 11:21:32 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B2=D0=B0=D0=BB=D0=B8=D0=B4=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D1=8F=20=D0=BF=D1=83=D1=81=D1=82=D1=8B=D1=85=20par?= =?UTF-8?q?entRowIds=20=D0=B2=20=D1=80=D0=B5=D0=B4=D0=B0=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B5=20=D0=BF=D0=BE=D0=B4=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BE=D1=87=D0=BD=D0=B8=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/pages/TableEditor.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/src/pages/TableEditor.tsx b/client/src/pages/TableEditor.tsx index 4e14b27..db3f377 100644 --- a/client/src/pages/TableEditor.tsx +++ b/client/src/pages/TableEditor.tsx @@ -288,6 +288,14 @@ export default function TableEditor() { toast({ title: 'Выберите подсправочник', variant: 'destructive' }); return; } + if (subdirectoryParentRowIds.size === 0) { + toast({ + title: 'Не выбраны строки родителя', + description: 'Подсправочник не будет отображаться в форме. Отметьте хотя бы одну строку.', + variant: 'destructive', + }); + return; + } const payload = { childTableId: childId, parentColumnIndex: subdirectoryParentColumnIndex,