🚑 Fix crash since -1 release does not exist
This commit is contained in:
parent
33175d9dbe
commit
62ed08c6c3
1 changed files with 3 additions and 1 deletions
|
@ -22,7 +22,9 @@ export default function parsePatchManifest(manifestFile: any): any {
|
||||||
ReleaseUpdatePaths.elements.forEach((ReleaseUpdatePath: any) => {
|
ReleaseUpdatePaths.elements.forEach((ReleaseUpdatePath: any) => {
|
||||||
const from = ReleaseUpdatePath.elements[0].elements[0].text;
|
const from = ReleaseUpdatePath.elements[0].elements[0].text;
|
||||||
const to = ReleaseUpdatePath.elements[1].elements[0].text;
|
const to = ReleaseUpdatePath.elements[1].elements[0].text;
|
||||||
|
if (from !== '-1') {
|
||||||
out.releases[from].to.push(to);
|
out.releases[from].to.push(to);
|
||||||
|
}
|
||||||
out.releases[to].from.push(from);
|
out.releases[to].from.push(from);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue