From 337e12f41cc0e76c6c51f3f97828373f6e17633d Mon Sep 17 00:00:00 2001 From: Pawan Kumar Date: Tue, 11 Jun 2024 16:40:25 +0530 Subject: [PATCH] chore: Fix Connect data button is active on preview mode and triggers property pane pop-up (#34168) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #33719 /ok-to-test tags="@tag.Anvil" > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: a5a79c94a8ce1d5c312c9b87d484974295e5eab2 > Cypress dashboard url: Click here! ## Summary by CodeRabbit - **Bug Fixes** - Improved the conditional logic for displaying the connect data overlay in the table widget, ensuring it does not show in preview mode. Co-authored-by: Pawan Kumar --- app/client/src/widgets/wds/WDSTableWidget/widget/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/client/src/widgets/wds/WDSTableWidget/widget/index.tsx b/app/client/src/widgets/wds/WDSTableWidget/widget/index.tsx index 5ebd2780db..992a357375 100644 --- a/app/client/src/widgets/wds/WDSTableWidget/widget/index.tsx +++ b/app/client/src/widgets/wds/WDSTableWidget/widget/index.tsx @@ -961,7 +961,8 @@ export class WDSTableWidget extends BaseWidget { showConnectDataOverlay={ primaryColumns && !Object.keys(primaryColumns).length && - this.props.renderMode === RenderModes.CANVAS + this.props.renderMode === RenderModes.CANVAS && + !Boolean(this.props.isPreviewMode) } sortTableColumn={this.handleColumnSorting} tableData={finalTableData}