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,