card grid factory stability improved
This commit is contained in:
1 parent
b39edfc072
commit
7c47e4b0d6
1 file changed
+3
-1
@@ -80,7 +80,9 @@ export function createPageTokens(components: StrapiComponent[]): Token[] {
|
||||
return {
|
||||
token: 'grid',
|
||||
data: {
|
||||
items: component.items.map(createCardGrid)
|
||||
items: component.items
|
||||
.filter(Boolean)
|
||||
.map(createCardGrid)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user