Skip to content

Commit

Permalink
temp-fix: dirs containing readonly items not loading on 1st init
Browse files Browse the repository at this point in the history
This is a temporary monkey-patch
Fixes #43
  • Loading branch information
aleksey-hoffman committed Jun 23, 2021
1 parent acfb92c commit ace9953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/navigatorCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ async function fetchDirItemData (path, nameBase, itemHeight) {
if (shouldFetchExtraStats(path)) {
state.isGettingStats = true
const dir = PATH.parse(path).dir.replace(/\\/g, '/')
state.extraStats = await fsManager.getItemChildrenStats({ path })
// state.extraStats = await fsManager.getItemChildrenStats({ path })
state.extraStatsDir = dir
state.isGettingStats = false
}
Expand All @@ -300,7 +300,7 @@ async function fetchDirItemData (path, nameBase, itemHeight) {
try {
// addExtraStatsProperty(dirItemData)
dirItemData.stat = await getStat(path)
if (isObjectEmpty(dirItemData.stat)) {throw Error('inaccessible item')}
// if (isObjectEmpty(dirItemData.stat)) {throw Error('inaccessible item')}
// console.log(dirItemData.path, isObjectEmpty(dirItemData.stat))
dirItemData.isHidden = isHidden(dirItemData)
dirItemData.isInaccessible = isObjectEmpty(dirItemData.stat)
Expand Down

0 comments on commit ace9953

Please sign in to comment.