B: Fix OSS creation
Some checks are pending
Frontend CI / build (22.x) (push) Waiting to run
Frontend CI / notify-failure (push) Blocked by required conditions

This commit is contained in:
Ivan 2025-08-04 10:25:21 +03:00
parent 2bacaf34b6
commit 88f8c4523a

View File

@ -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 });
}