@crowdin/app-project-module 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -515,9 +515,9 @@ function getAllNewFiles(_a) {
|
|
|
515
515
|
function getNewFoldersFile(folders, snapshotFiles) {
|
|
516
516
|
let files = [];
|
|
517
517
|
for (const folder of folders) {
|
|
518
|
-
const
|
|
519
|
-
if (
|
|
520
|
-
files = files.concat(
|
|
518
|
+
const folderFiles = snapshotFiles.filter((file) => Number(file.parentId) === Number(folder.id));
|
|
519
|
+
if (folderFiles.length) {
|
|
520
|
+
files = files.concat(folderFiles);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
files = files.filter((file) => 'type' in file);
|
package/package.json
CHANGED