From 2dc3fa3f21ef7dea9dadd0d1f23c2c02dcf1bbab Mon Sep 17 00:00:00 2001 From: eriendeng <30573371+eriendeng@users.noreply.github.com> Date: Thu, 29 Apr 2021 15:42:11 +0800 Subject: [PATCH] fix error getting partitionQuery from table.partition (#14369) Co-authored-by: eriendeng --- 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 a2dd2a09688..72805732fb2 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 = (