From 2ff822dbb4661b4283bdb4e62671c3e4c1d7a1a1 Mon Sep 17 00:00:00 2001 From: asvinb Date: Tue, 15 Oct 2024 19:08:37 +0400 Subject: [PATCH] Revert changes. --- js/src/components/paid-ads/campaign-assets-form.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/js/src/components/paid-ads/campaign-assets-form.js b/js/src/components/paid-ads/campaign-assets-form.js index f30d0266ef..9635690076 100644 --- a/js/src/components/paid-ads/campaign-assets-form.js +++ b/js/src/components/paid-ads/campaign-assets-form.js @@ -1,7 +1,7 @@ /** * External dependencies */ -import { useState, useMemo, useRef } from '@wordpress/element'; +import { useState, useMemo } from '@wordpress/element'; import { isPlainObject } from 'lodash'; /** @@ -66,7 +66,6 @@ function convertAssetEntityGroupToFormValues( assetEntityGroup = {} ) { * @augments AdaptiveForm * @param {Object} props React props. * @param {CampaignFormValues} props.initialCampaign Initial campaign values. - * @param {Function} [props.onChange] Callback when the form values change. * @param {AssetEntityGroup} [props.assetEntityGroup] The asset entity group to be used in initializing the form values for editing. * @param {number} props.minimumAmount The minimum amount for the daily budget. */ @@ -76,7 +75,6 @@ export default function CampaignAssetsForm( { minimumAmount, ...adaptiveFormProps } ) { - const formRef = useRef(); const initialAssetGroup = useMemo( () => { return convertAssetEntityGroupToFormValues( assetEntityGroup ); }, [ assetEntityGroup ] ); @@ -131,7 +129,6 @@ export default function CampaignAssetsForm( { return (