fix: disable duplicate services when only 1 product added
This commit is contained in:
@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user