Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/utils/fileUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ const genFileInfo = function(obj: FileStat): FileInfo {
Object.keys(obj).forEach(key => {
const data = obj[key]

// flatten object if any
// flatten object if any without overwriting type
if (!!data && typeof data === 'object' && !Array.isArray(data)) {
Object.assign(fileInfo, genFileInfo(data))
Object.assign(fileInfo, genFileInfo(data), fileInfo["type"] ? { type: fileInfo["type"] } : {})
} else {
// format key and add it to the fileInfo
if (data === 'false') {
Expand Down
Loading