mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-18 12:31:12 +02:00
itemservice: eslint fix
This commit is contained in:
@@ -258,7 +258,7 @@ export const itemService = {
|
||||
async getCountOfFileModeItems() {
|
||||
const items = await this.getAllItems();
|
||||
return items.reduce((count, item) => {
|
||||
if (item.files) return ++count;
|
||||
if (item.files) return count + 1;
|
||||
return count;
|
||||
}, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user