Skip to content

Commit a5259e7

Browse files
committed
Destructure for succinctness
1 parent a0d384b commit a5259e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/output/adapt/outputHelpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ function validateCourse(data, cb) {
293293
}
294294

295295
const contentHierarchy = [
296-
contentObjects.filter(contentObject => contentObject._type === 'menu'),
297-
contentObjects.filter(contentObject => contentObject._type === 'page'),
296+
contentObjects.filter(({ _type }) => _type === 'menu'),
297+
contentObjects.filter(({ _type }) => _type === 'page'),
298298
data.article,
299299
data.block,
300300
data.component

0 commit comments

Comments
 (0)