From 30d9abf95ca469bbbeeea621a724a12cdd8bf296 Mon Sep 17 00:00:00 2001 From: Ibrahim Riaz Date: Thu, 24 Oct 2024 17:05:03 +0600 Subject: [PATCH] Prevent handlePlugin Request on Pro Item Modal --- src/js/components/InsertTemplate/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/components/InsertTemplate/index.js b/src/js/components/InsertTemplate/index.js index e3c7eaf0..c26d5b23 100644 --- a/src/js/components/InsertTemplate/index.js +++ b/src/js/components/InsertTemplate/index.js @@ -69,7 +69,9 @@ const InsertTemplate = ({ setIsPurchased(isItemPurchased(template_id)); setIsUnlocked(isItemUnlocked(template_id)); - await handlePlugins(validPlugins); + if (!isPro && isItemPurchased(template_id) && isItemUnlocked(template_id)) { + await handlePlugins(validPlugins); + } if (insertFullTemplate) { isPro && !isItemPurchased(template_id) && !isItemUnlocked(template_id) && !pixetiqInstalled ?