fix: валидация пустых parentRowIds в редакторе подсправочника
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user