From 1a0c00c4507f29dc8f9ec8854a775ef3ffd06ffc Mon Sep 17 00:00:00 2001 From: Jason Porter <84735036+jsonporter@users.noreply.github.com> Date: Wed, 17 Nov 2021 10:14:40 -0800 Subject: [PATCH] Changed the return order to prioritize literal maps over blobs (#239) Signed-off-by: Jason Porter --- src/components/Literals/RemoteLiteralMapViewer.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/Literals/RemoteLiteralMapViewer.tsx b/src/components/Literals/RemoteLiteralMapViewer.tsx index 2759024d8a..5f330fec6e 100644 --- a/src/components/Literals/RemoteLiteralMapViewer.tsx +++ b/src/components/Literals/RemoteLiteralMapViewer.tsx @@ -30,6 +30,11 @@ export const RemoteLiteralMapViewer: React.FC<{ blob: UrlBlob; map: LiteralMap | null; }> = ({ blob, map }) => { + /** Note: if full_outputs has a value, we want to use that first */ + if (map != null) { + return ; + } + if (!blob.url || !blob.bytes) { return (

@@ -38,10 +43,6 @@ export const RemoteLiteralMapViewer: React.FC<{ ); } - if (map != null) { - return ; - } - return blob.bytes.gt(maxBlobDownloadSizeBytes) ? ( ) : (