Merge branch 'fix/api-pane-pagination' into 'release'

Fix issue with not returning draft in api pane

See merge request theappsmith/internal-tools-client!504
This commit is contained in:
Hetu Nandu 2020-04-21 08:48:11 +00:00
commit ea4a6bf8fd

View File

@ -221,8 +221,8 @@ const mapStateToProps = (state: AppState, props: any): ReduxStateProps => {
const { drafts } = state.ui.apiPane;
let data: RestAction | ActionData | RapidApiAction | undefined;
if (props.match.params.id in drafts) {
data = drafts[props.match.params.id];
if (apiAction && apiAction.id in drafts) {
data = drafts[apiAction.id];
} else {
data = apiAction;
}