This is an automated email from the ASF dual-hosted git repository.

amitmiran pushed a commit to branch 1.2
in repository https://gitbox.apache.org/repos/asf/superset.git

commit a06b04e3507802d46f970faab11ca59656df33ff
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]>
    (cherry picked from commit 2dc3fa3f21ef7dea9dadd0d1f23c2c02dcf1bbab)
---
 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

Reply via email to