From 0e930533e922c91c79d94fbe39a79418bacdc0d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cem=20=C3=9Cnalan?= Date: Thu, 12 Sep 2024 23:36:58 +0300 Subject: [PATCH] Prevent search request in the Extensions > My Subscriptions page (#51164) * Prevent search request in the Extensions > My Subscriptions page * Add changefile(s) from automation for the following project(s): woocommerce --------- Co-authored-by: github-actions --- .../client/marketplace/components/content/content.tsx | 3 ++- .../51164-fix-extra-search-request-in-my-subscriptions | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 plugins/woocommerce/changelog/51164-fix-extra-search-request-in-my-subscriptions diff --git a/plugins/woocommerce-admin/client/marketplace/components/content/content.tsx b/plugins/woocommerce-admin/client/marketplace/components/content/content.tsx index faf30ef8134..73142721037 100644 --- a/plugins/woocommerce-admin/client/marketplace/components/content/content.tsx +++ b/plugins/woocommerce-admin/client/marketplace/components/content/content.tsx @@ -73,7 +73,8 @@ export default function Content(): JSX.Element { if ( query.tab === undefined || - ( query.tab && [ '', 'discover' ].includes( query.tab ) ) + ( query.tab && + [ '', 'discover', 'my-subscriptions' ].includes( query.tab ) ) ) { return; } diff --git a/plugins/woocommerce/changelog/51164-fix-extra-search-request-in-my-subscriptions b/plugins/woocommerce/changelog/51164-fix-extra-search-request-in-my-subscriptions new file mode 100644 index 00000000000..85c7d2e021f --- /dev/null +++ b/plugins/woocommerce/changelog/51164-fix-extra-search-request-in-my-subscriptions @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Prevent search request in the Extensions > My Subscriptions page \ No newline at end of file