From f9d9a61c1a1d7b4b2e448c38ddbb43b259e13dbd Mon Sep 17 00:00:00 2001 From: illia-prokopchuk <78905712+illia-prokopchuk@users.noreply.github.com> Date: Thu, 29 Dec 2022 11:19:18 +0200 Subject: [PATCH] Fix [UI] Bytes Artifact fails to show in "Preview" tab `1.2.1` (#1574) --- src/utils/createArtifactPreviewContent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/createArtifactPreviewContent.js b/src/utils/createArtifactPreviewContent.js index a3b394433..da9dcbcb8 100644 --- a/src/utils/createArtifactPreviewContent.js +++ b/src/utils/createArtifactPreviewContent.js @@ -75,7 +75,7 @@ export const createArtifactPreviewContent = (res, fileFormat, path, artifactName if (path && artifactName) { artifact.data = { - content: `Preview is not available for this artifact type. Go to ${path} to retrieve the data, or use mlrun api/sdk project.get_artifact(‘${artifactName}’).show()` + content: `Preview is not available for this artifact type. Go to ${path} to retrieve the data, or use mlrun api/sdk project.get_artifact('${artifactName}').to_dataitem().get()` } } }