Skip to content

Commit

Permalink
Fix [Batch Run] Blank project screen after setting model target path
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan7empest committed Jan 30, 2024
1 parent 3ad0719 commit 6e71871
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/common/TargetPath/targetPath.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,10 @@ export const generateArtifactsReferencesList = artifacts => {
.sort((prevRef, nextRef) => {
const [prevRefIter, prevRefTree] = prevRef.id.split('@')
const [nextRefIter, nextRefTree] = nextRef.id.split('@')

if (prevRefTree === nextRefTree) {
return prevRefIter.localeCompare(nextRefIter)
return prevRefIter && prevRefIter.localeCompare(nextRefIter)
} else {
return prevRefTree.localeCompare(nextRefTree)
return prevRefTree && prevRefTree.localeCompare(nextRefTree)
}
})

Expand Down

0 comments on commit 6e71871

Please sign in to comment.