wip fix
This commit is contained in:
parent
11981d9032
commit
010adfb473
|
|
@ -11,13 +11,14 @@ export const ResponsiveToggle = () => {
|
||||||
const activeModeClassName = "border-b-2 border-blue-500";
|
const activeModeClassName = "border-b-2 border-blue-500";
|
||||||
|
|
||||||
const render = () => {
|
const render = () => {
|
||||||
const code = p.code["site"].doc;
|
const code = p.code["site"]?.doc;
|
||||||
if (code) {
|
if (code) {
|
||||||
const src = code.getMap("map").get("files")?.get("index.js");
|
const src = code.getMap("map").get("files")?.get("index.js");
|
||||||
applyEnv(p, src);
|
applyEnv(p, src);
|
||||||
treeRebuild(p);
|
|
||||||
p.render();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
treeRebuild(p);
|
||||||
|
p.render();
|
||||||
};
|
};
|
||||||
|
|
||||||
const box = {
|
const box = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue