Skip to content

Commit

Permalink
Handle missing layouts property
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvire committed Nov 15, 2024
1 parent 21b6475 commit 8cd2f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/data/stores/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function findCollection(id) {
}

function createInitCollections(): App.CollectionGroup {
const layouts = config.layouts;
const layouts = config.layouts || [];
const initCollections: App.CollectionGroup = {};

for (const layout of layouts) {
Expand Down

0 comments on commit 8cd2f5a

Please sign in to comment.