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;