Skip to content

Commit

Permalink
fix error getting partitionQuery from table.partition (#14369)
Browse files Browse the repository at this point in the history
Co-authored-by: eriendeng <eriendeng@tencent.com>
(cherry picked from commit 2dc3fa3)
  • Loading branch information
eriendeng authored and amitmiran137 committed Apr 30, 2021
1 parent 7ef7663 commit a06b04e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset-frontend/src/SqlLab/components/TableElement.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class TableElement extends React.PureComponent {
let partitionQuery;
let partitionClipBoard;
if (table.partitions.partitionQuery) {
({ partitionQuery } = table.partitions.partitionQuery);
({ partitionQuery } = table.partitions);
const tt = t('Copy partition query to clipboard');
partitionClipBoard = (
<CopyToClipboard
Expand Down

0 comments on commit a06b04e

Please sign in to comment.