Skip to content

Commit

Permalink
Merge pull request #4864 from appsmithorg/FIX/4731-dragging-and-dropp…
Browse files Browse the repository at this point in the history
…ing-table-widget-error-in-debugger

FIX #4731: update condition for selectedRowIndices when table widget drag and drop
  • Loading branch information
somangshu authored Jun 21, 2021
2 parents a9961f0 + 26a7087 commit 82a62cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/client/src/widgets/TableWidget/derived.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ export default {
},
//
getSelectedRows: (props, moment, _) => {
const selectedRowIndices = props.selectedRowIndices || [];
const selectedRowIndices = Array.isArray(props.selectedRowIndices)
? props.selectedRowIndices
: [props.selectedRowIndices];
const filteredTableData =
props.filteredTableData || props.sanitizedTableData || [];

Expand Down

0 comments on commit 82a62cf

Please sign in to comment.