Skip to content

Commit

Permalink
fix nested empty folders
Browse files Browse the repository at this point in the history
  • Loading branch information
fiskus committed Jun 13, 2024
1 parent fdda12e commit 224f3e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions catalog/app/containers/Bucket/PackageDialog/FilesInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ const insertIntoTree = (path: string[] = [], file: FilesEntry, entries: FilesEnt
Dir: () => false,

Check warning on line 108 in catalog/app/containers/Bucket/PackageDialog/FilesInput.tsx

View check run for this annotation

Codecov / codecov/patch/informational

catalog/app/containers/Bucket/PackageDialog/FilesInput.tsx#L108

Added line #L108 was not covered by tests
},
file,
)
) &&
!rest.length

Check warning on line 112 in catalog/app/containers/Bucket/PackageDialog/FilesInput.tsx

View check run for this annotation

Codecov / codecov/patch/informational

catalog/app/containers/Bucket/PackageDialog/FilesInput.tsx#L112

Added line #L112 was not covered by tests
) {
// FIXME: handle if `rest.length`
inserted = baseDir
} else {
inserted = insertIntoDir(rest, file, baseDir)

Check warning on line 116 in catalog/app/containers/Bucket/PackageDialog/FilesInput.tsx

View check run for this annotation

Codecov / codecov/patch/informational

catalog/app/containers/Bucket/PackageDialog/FilesInput.tsx#L114-L116

Added lines #L114 - L116 were not covered by tests
Expand Down

0 comments on commit 224f3e7

Please sign in to comment.