mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-08-13 12:20:36 +03:00
B: Fix OSS creation
This commit is contained in:
parent
2bacaf34b6
commit
88f8c4523a
|
@ -73,14 +73,14 @@ export function FormCreateItem() {
|
|||
setValue('fileName', event.target.files[0].name, { shouldValidate: true });
|
||||
} else {
|
||||
setValue('file', undefined);
|
||||
setValue('fileName', '');
|
||||
setValue('fileName', undefined);
|
||||
}
|
||||
}
|
||||
|
||||
function handleItemTypeChange(value: LibraryItemType) {
|
||||
if (value !== LibraryItemType.RSFORM) {
|
||||
setValue('file', undefined);
|
||||
setValue('fileName', '');
|
||||
setValue('fileName', undefined);
|
||||
}
|
||||
setValue('item_type', value, { shouldValidate: true });
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user