From 50911c99a8096883c9dc5dc3d5d3bb8cb751c531 Mon Sep 17 00:00:00 2001 From: Tomas Martykan Date: Mon, 23 Dec 2024 09:53:45 +0100 Subject: [PATCH] fix(connect-explorer): method tester details --- packages/connect-explorer/src/components/ApiPlayground.tsx | 1 - packages/connect-explorer/src/reducers/methodReducer.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/connect-explorer/src/components/ApiPlayground.tsx b/packages/connect-explorer/src/components/ApiPlayground.tsx index 687ca510699..c5dfc94ed4f 100644 --- a/packages/connect-explorer/src/components/ApiPlayground.tsx +++ b/packages/connect-explorer/src/components/ApiPlayground.tsx @@ -45,7 +45,6 @@ const ContentWrapper = styled.div` `; const OptionsRow = styled(MethodContent)` - margin-top: -${spacingsPx.sm}; margin-bottom: ${spacingsPx.md}; align-items: center; diff --git a/packages/connect-explorer/src/reducers/methodReducer.ts b/packages/connect-explorer/src/reducers/methodReducer.ts index 83d2b425e48..f155d448051 100644 --- a/packages/connect-explorer/src/reducers/methodReducer.ts +++ b/packages/connect-explorer/src/reducers/methodReducer.ts @@ -54,7 +54,7 @@ const onFieldChange = (state: MethodState, _field: Field, value: any) => { setAffectedValues(newState, field); } - return updateParams(newState); + return updateParams({ ...state, fields: newState.fields }); }; // Update field data