From 4d0e19b677a6de6e40bf577e2d6b07cda3d2d730 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Fri, 19 Jan 2024 10:54:54 +0400 Subject: [PATCH] chore: use correct function args --- .../ChangeRequest/Changes/Change/StrategyChange.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/StrategyChange.tsx b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/StrategyChange.tsx index 673f5f66ce7e..bcf53f58c3c9 100644 --- a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/StrategyChange.tsx +++ b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/StrategyChange.tsx @@ -140,12 +140,9 @@ export const StrategyChange: VFC<{ isStrategyAction && hasDiff(currentStrategy?.variants || [], change.payload.variants || []); - const changesThatWouldBeOverwritten = + const changesThatWouldBeOverwritten = checkForChanges && change.action === 'updateStrategy' - ? getChangesThatWouldBeOverwritten({ - currentStrategyConfig: currentStrategy, - change, - }) + ? getChangesThatWouldBeOverwritten(currentStrategy, change) : null; return (