chore: ignore empty state of janDataFolder
This commit is contained in:
parent
a57d6d8495
commit
6c13b4627b
@ -42,6 +42,7 @@ export const useLoadTheme = async () => {
|
|||||||
)
|
)
|
||||||
|
|
||||||
const getThemes = useCallback(async () => {
|
const getThemes = useCallback(async () => {
|
||||||
|
if (!janDataFolderPath.length) return
|
||||||
const folderPath = await joinPath([janDataFolderPath, 'themes'])
|
const folderPath = await joinPath([janDataFolderPath, 'themes'])
|
||||||
const installedThemes = await fs.readdirSync(folderPath)
|
const installedThemes = await fs.readdirSync(folderPath)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user