From f9aab0fefa98bad0fe1815b053e4695271e5b72c Mon Sep 17 00:00:00 2001 From: Ilya Oleshko Date: Thu, 12 Dec 2024 14:20:14 +0300 Subject: [PATCH] Client: SDK: Fixed selectorType check --- packages/client/src/pages/Sdk/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/client/src/pages/Sdk/index.js b/packages/client/src/pages/Sdk/index.js index 1fd5d6e54b9..5785bdce450 100644 --- a/packages/client/src/pages/Sdk/index.js +++ b/packages/client/src/pages/Sdk/index.js @@ -126,7 +126,10 @@ const Sdk = ({ getFilesSettings(); }, []); - const { mode, selectorType } = useParams(); + const { mode } = useParams(); + const selectorType = new URLSearchParams(window.location.search).get( + "selectorType", + ); const handleMessage = async (e) => { const eventData = typeof e.data === "string" ? JSON.parse(e.data) : e.data;