Merge branch 'fix/minor-fixes' into 'release'

Fix selected row, add new HTTP method

See merge request theappsmith/internal-tools-client!297
This commit is contained in:
Hetu Nandu 2020-02-18 18:21:02 +00:00
commit ed9cc21d3d
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -102,7 +102,7 @@ class TableWidget extends BaseWidget<TableWidgetProps, WidgetState> {
handleRowClick = (rowData: object, index: number) => {
const { onRowSelected } = this.props;
super.updateWidgetProperty("selectedRow", index);
super.updateWidgetProperty("selectedRowIndex", index);
if (onRowSelected) {
super.executeAction({
dynamicString: onRowSelected,