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,