diff --git a/src/ts/helpers/FileGrip/components/type.ts b/src/ts/helpers/FileGrip/components/type.ts index 150ff36..5371620 100644 --- a/src/ts/helpers/FileGrip/components/type.ts +++ b/src/ts/helpers/FileGrip/components/type.ts @@ -27,7 +27,7 @@ export default class FileGripByType { if (!key || file?.name?.[0] === '.') return; - if (!this.statisticByName[key]) { + if (!this.statisticByName.hasOwnProperty(key)) { this.statisticByName[key] = this.#getNewType(file); }