This is an automated email from the ASF dual-hosted git repository.
villebro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 2dc3fa3 fix error getting partitionQuery from table.partition (#14369)
2dc3fa3 is described below
commit 2dc3fa3f21ef7dea9dadd0d1f23c2c02dcf1bbab
Author: eriendeng <[email protected]>
AuthorDate: Thu Apr 29 15:42:11 2021 +0800
fix error getting partitionQuery from table.partition (#14369)
Co-authored-by: eriendeng <[email protected]>
---
superset-frontend/src/SqlLab/components/TableElement.jsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset-frontend/src/SqlLab/components/TableElement.jsx
b/superset-frontend/src/SqlLab/components/TableElement.jsx
index a2dd2a0..7280573 100644
--- a/superset-frontend/src/SqlLab/components/TableElement.jsx
+++ b/superset-frontend/src/SqlLab/components/TableElement.jsx
@@ -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