Skip to content

Commit cf68e51

Browse files
committed
Revert "Redirect on examples when no mapper"
This reverts commit d6e0062.
1 parent fac2106 commit cf68e51

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/react-renderer-demo/src/components/component-example.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,9 @@ const mapperTab = {
157157

158158
const ComponentExample = ({ variants, schema, activeMapper, component }) => {
159159
const activeTab = mapperTab[activeMapper];
160-
const { pathname, push, query, asPath } = useRouter();
160+
const { pathname, push } = useRouter();
161161
const classes = useStyles();
162162
useEffect(() => {
163-
if (!query?.mapper) {
164-
const [path, hash] = asPath.split('#');
165-
push(`${path}?mapper=mui${hash ? `#${hash}` : ''}`);
166-
}
167-
168163
sdk.embedProject(
169164
'code-target',
170165
{

0 commit comments

Comments
 (0)