From 5a95991fbd71a3a0557cae04050d583f4cd97e3c Mon Sep 17 00:00:00 2001 From: Hetu Nandu Date: Tue, 18 Feb 2020 23:43:19 +0530 Subject: [PATCH] fixes --- app/client/src/constants/ApiEditorConstants.ts | 2 +- app/client/src/widgets/TableWidget.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/client/src/constants/ApiEditorConstants.ts b/app/client/src/constants/ApiEditorConstants.ts index e54297b3e1..e024d592a5 100644 --- a/app/client/src/constants/ApiEditorConstants.ts +++ b/app/client/src/constants/ApiEditorConstants.ts @@ -1,6 +1,6 @@ import { RestAction } from "api/ActionAPI"; -export const HTTP_METHODS = ["GET", "POST", "PUT", "DELETE"]; +export const HTTP_METHODS = ["GET", "POST", "PUT", "DELETE", "PATCH"]; export const HTTP_METHOD_OPTIONS = HTTP_METHODS.map(method => ({ label: method, diff --git a/app/client/src/widgets/TableWidget.tsx b/app/client/src/widgets/TableWidget.tsx index 0904e96077..0c557c1323 100644 --- a/app/client/src/widgets/TableWidget.tsx +++ b/app/client/src/widgets/TableWidget.tsx @@ -102,7 +102,7 @@ class TableWidget extends BaseWidget { handleRowClick = (rowData: object, index: number) => { const { onRowSelected } = this.props; - super.updateWidgetProperty("selectedRow", index); + super.updateWidgetProperty("selectedRowIndex", index); if (onRowSelected) { super.executeAction({ dynamicString: onRowSelected,