Skip to content

Commit

Permalink
Revert changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
asvinb committed Oct 15, 2024
1 parent 631252d commit 2ff822d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions js/src/components/paid-ads/campaign-assets-form.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { useState, useMemo, useRef } from '@wordpress/element';
import { useState, useMemo } from '@wordpress/element';
import { isPlainObject } from 'lodash';

/**
Expand Down Expand Up @@ -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.
*/
Expand All @@ -76,7 +75,6 @@ export default function CampaignAssetsForm( {
minimumAmount,
...adaptiveFormProps
} ) {
const formRef = useRef();
const initialAssetGroup = useMemo( () => {
return convertAssetEntityGroupToFormValues( assetEntityGroup );
}, [ assetEntityGroup ] );
Expand Down Expand Up @@ -131,7 +129,6 @@ export default function CampaignAssetsForm( {

return (
<AdaptiveForm
ref={ formRef }
initialValues={ {
...initialCampaign,
...initialAssetGroup,
Expand Down

0 comments on commit 2ff822d

Please sign in to comment.