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:
commit
ed9cc21d3d
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user