[fix] ignore .DS_Store
This commit is contained in:
parent
8f61d81eef
commit
8626fa84d0
|
@ -13,6 +13,9 @@ function getTopicTree(ctx) {
|
|||
const data = ctx.locals.get('data')
|
||||
var list = []
|
||||
for (let key of Object.keys(data)) {
|
||||
if (key.endsWith('.DS_Store')) {
|
||||
continue
|
||||
}
|
||||
if (key.startsWith('topic/') && key.length > 5) {
|
||||
let newKey = key.replace('topic/', '')
|
||||
let obj = data[key]
|
||||
|
|
Loading…
Reference in New Issue