Spaces:
Sleeping
Sleeping
Commit ·
c73e605
1
Parent(s): 6b521f9
Hide gitkeep artifacts resulting from secure_filename
Browse files- js/api/hfService.js +1 -1
js/api/hfService.js
CHANGED
|
@@ -56,7 +56,7 @@ class HFService {
|
|
| 56 |
if (data && data.success) {
|
| 57 |
if (data.files) {
|
| 58 |
for (const item of data.files) {
|
| 59 |
-
if (!item.path.endsWith('/.gitkeep') && item.path !== '.gitkeep') {
|
| 60 |
result.files.push({
|
| 61 |
path: item.path,
|
| 62 |
name: item.name,
|
|
|
|
| 56 |
if (data && data.success) {
|
| 57 |
if (data.files) {
|
| 58 |
for (const item of data.files) {
|
| 59 |
+
if (!item.path.endsWith('/.gitkeep') && item.path !== '.gitkeep' && !item.path.endsWith('/gitkeep') && item.path !== 'gitkeep') {
|
| 60 |
result.files.push({
|
| 61 |
path: item.path,
|
| 62 |
name: item.name,
|