Skip to content

Commit 71c9deb

Browse files
committed
🐞 fix: 忽略 .DS_Store 文件
1 parent 96911bd commit 71c9deb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/materials.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const getLocalMaterials = (
7979
};
8080
});
8181
} catch {}
82-
return materials;
82+
return materials.filter((s) => s.name !== '.DS_Store');
8383
};
8484

8585
export const getCodeTemplateListFromFiles = () => {

0 commit comments

Comments
 (0)