chore: ignore empty state of janDataFolder

This commit is contained in:
Louis 2024-08-16 16:54:56 +07:00
parent a57d6d8495
commit 6c13b4627b
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2

View File

@ -42,6 +42,7 @@ export const useLoadTheme = async () => {
)
const getThemes = useCallback(async () => {
if (!janDataFolderPath.length) return
const folderPath = await joinPath([janDataFolderPath, 'themes'])
const installedThemes = await fs.readdirSync(folderPath)