fix: cleanup temp code
This commit is contained in:
parent
6ea53dc652
commit
d35ca7f3ba
4 changed files with 6 additions and 46 deletions
|
|
@ -5,7 +5,7 @@ export function localizeLayout<T>(
|
|||
layout: DeepReadonly<Layout<T>>,
|
||||
): T[keyof T][] {
|
||||
const sections: T[keyof T][] = [];
|
||||
for (const sectionId of layout.layout) {
|
||||
for (const sectionId of layout.layout ?? []) {
|
||||
const section = (layout.data as T)[sectionId as keyof T];
|
||||
if (section) {
|
||||
sections.push(section);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue