feat: подсправочники — отображение в форме задачи, фильтрация и отображение значений

This commit is contained in:
2026-07-15 10:56:25 +03:00
parent f560facabd
commit 9c6eaa5dcf
8 changed files with 238 additions and 13 deletions

View File

@@ -94,10 +94,12 @@ export default function SubdirectoryFieldConfig({
};
const handleSubdirectoryChange = (value: string) => {
const newSubdirectory = value === 'none' ? undefined : subdirectories.find((s) => s.id?.toString() === value || s.childTableId?.toString() === value);
updateField(index, {
options: {
...field.options,
subdirectoryId: value === 'none' ? undefined : parseInt(value),
subdirectoryId: newSubdirectory?.id,
childTableId: newSubdirectory?.childTableId,
},
});
};