This commit is contained in:
Rizky 2024-01-27 17:06:47 +07:00
parent 1ae96ca38e
commit 475e3f74e7
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ export const site_load: SAction["site"]["load"] = async function (
let layout_id = "";
if (layouts.length === 1) {
layout_id = layouts[0].id;
} else {
} else if (layouts.length > 1) {
for (const layout of layouts) {
if (layout.is_default_layout) {
layout_id = layout.id;