Skip to content

Commit bc1c259

Browse files
committed
docs: fix disabling animations causing issues
1 parent 117d76a commit bc1c259

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

docs/app.config.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,16 @@ const motions = {
124124

125125
// disable all documentation motions
126126
Object.entries(motions).forEach(([_, val]) => {
127-
Object.keys(val).forEach((x) => {
128-
// @ts-expect-error looping through keys so should be fine
129-
val[x] = {}
127+
Object.keys(val).forEach((k) => {
128+
// nested motion config
129+
if (['h1', 'common'].includes(k)) {
130+
Object.keys(val).forEach((kNested) => {
131+
val[k][kNested] = {}
132+
})
133+
}
134+
else {
135+
val[k] = {}
136+
}
130137
})
131138
})
132139

0 commit comments

Comments
 (0)