fix: disable duplicate services when only 1 product added

This commit is contained in:
2025-10-10 23:02:06 +04:00
parent 6351642838
commit 92602549f8

View File

@ -104,6 +104,7 @@ const ProductServicesTable: FC<Props> = ({
{onDuplicateServices && ( {onDuplicateServices && (
<ActionIconWithTip <ActionIconWithTip
tipLabel={"Продублировать услуги"} tipLabel={"Продублировать услуги"}
disabled={dealProductsList.dealProducts.length <= 1}
onClick={onDuplicateServices}> onClick={onDuplicateServices}>
<IconCopy /> <IconCopy />
</ActionIconWithTip> </ActionIconWithTip>