Skip to content
This repository was archived by the owner on Aug 15, 2023. It is now read-only.

Commit b039323

Browse files
authored
Merge branch 'master' into er/INVGEN-45169-pdf-for-authd-user
2 parents d380060 + e93c09d commit b039323

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

WebApplication/ClientApp/src/components/uploadPackage.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ import './uploadPackage.css';
3333
import { unzip, setOptions } from 'unzipit';
3434
import Select from 'react-select';
3535

36+
const path = require('path');
37+
3638
export class UploadPackage extends Component {
3739

3840
constructor(props) {
@@ -51,7 +53,7 @@ export class UploadPackage extends Component {
5153

5254
const {entries} = await unzip(file);
5355
Object.entries(entries).forEach(([name]) => {
54-
if (name.toLowerCase().endsWith('.iam')) {
56+
if (name.toLowerCase().endsWith('.iam') && !name.toLowerCase().includes(path.sep + 'oldversions' + path.sep)) {
5557
assemblies.push(name);
5658
}
5759
});

0 commit comments

Comments
 (0)