mirror of
https://iceshrimp.dev/Crimekillz/jointrashposs.git
synced 2024-11-22 08:53:49 +01:00
(fix) failure on prerender
This commit is contained in:
parent
bd58e97b37
commit
a1f0178e4d
@ -45,7 +45,7 @@ const findDeepObject = (obj: Record<string, any>, condition: (v: any) => boolean
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (obj.children && obj.children.length > 0) {
|
if (obj?.children && obj.children.length > 0) {
|
||||||
for (let i = 0; i < obj.children.length; i++) {
|
for (let i = 0; i < obj.children.length; i++) {
|
||||||
console.log(obj.children[i]);
|
console.log(obj.children[i]);
|
||||||
const result = findDeepObject(obj.children[i], condition);
|
const result = findDeepObject(obj.children[i], condition);
|
||||||
|
Loading…
Reference in New Issue
Block a user