From 82f0233d5b7de4d96e6c188ffe0319fa4fd16281 Mon Sep 17 00:00:00 2001 From: Ilank <63646693+ilan7empest@users.noreply.github.com> Date: Tue, 30 Jan 2024 16:49:17 +0200 Subject: [PATCH] Fix [Batch Run] Blank project screen after setting model target path (#2226) --- package.json | 2 +- src/common/TargetPath/targetPath.util.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 8ccc02f20..3576a1909 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "final-form-arrays": "^3.0.2", "fs-extra": "^10.0.0", "identity-obj-proxy": "^3.0.0", - "iguazio.dashboard-react-controls": "1.8.4", + "iguazio.dashboard-react-controls": "1.8.5", "is-wsl": "^1.1.0", "js-base64": "^2.5.2", "js-yaml": "^3.13.1", diff --git a/src/common/TargetPath/targetPath.util.js b/src/common/TargetPath/targetPath.util.js index 5bf49c2d7..686d14161 100644 --- a/src/common/TargetPath/targetPath.util.js +++ b/src/common/TargetPath/targetPath.util.js @@ -304,9 +304,9 @@ export const generateArtifactsReferencesList = artifacts => { 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) } })