Allow deleting any variant as long as there is more than one

This commit is contained in:
Gabe Kangas 2021-02-03 10:11:11 -08:00
parent 59871401d6
commit 5038992513

View File

@ -162,7 +162,7 @@ export default function CurrentVariantsTable() {
className="delete-button" className="delete-button"
icon={<DeleteOutlined />} icon={<DeleteOutlined />}
size="small" size="small"
disabled={index === 0} disabled={videoQualityVariants.length === 1}
onClick={() => { onClick={() => {
handleDeleteVariant(index); handleDeleteVariant(index);
}} }}