From 7e9d0786e5a41108f3384dc8c20a2f647a003406 Mon Sep 17 00:00:00 2001 From: eriendeng Date: Tue, 27 Apr 2021 14:15:46 +0800 Subject: [PATCH] fix error getting partitionQuery from table.partition --- 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 13c106ca6fde..65e2d8e2ed85 100644 --- a/superset-frontend/src/SqlLab/components/TableElement.jsx +++ b/superset-frontend/src/SqlLab/components/TableElement.jsx @@ -104,7 +104,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 = (