From 0cd66549f817bcf300b2f2002087fde1f6c32c48 Mon Sep 17 00:00:00 2001 From: Tim Sweeney Date: Tue, 23 Jan 2024 16:27:31 -0800 Subject: [PATCH] chore(weave): Fixes ArtifactRefLinks for Values #1133 --- .../PagePanelComponents/Home/Browse2/WeaveEditors.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/weave-js/src/components/PagePanelComponents/Home/Browse2/WeaveEditors.tsx b/weave-js/src/components/PagePanelComponents/Home/Browse2/WeaveEditors.tsx index 705c0db0d80..a75c21069f0 100644 --- a/weave-js/src/components/PagePanelComponents/Home/Browse2/WeaveEditors.tsx +++ b/weave-js/src/components/PagePanelComponents/Home/Browse2/WeaveEditors.tsx @@ -384,7 +384,10 @@ const WeaveEditorField: FC<{ return ; } if (isAssignableTo(node.type, maybe({type: 'OpDef'}))) { - return ; + return ; + } + if (isAssignableTo(node.type, maybe({type: 'WandbArtifactRef'}))) { + return ; } return
[No editor for type {weave.typeToString(node.type)}]
; }; @@ -776,7 +779,7 @@ export const WeaveEditorTable: FC<{ ); }; -export const WeaveViewOpDef: FC<{ +export const WeaveViewSmallRef: FC<{ node: Node; }> = ({node}) => { const opDefQuery = useNodeValue(node); @@ -789,6 +792,6 @@ export const WeaveViewOpDef: FC<{ } else if (opDefRef != null) { return ; } else { - return
invalid op def: {opDefQuery.result}
; + return
invalid ref: {opDefQuery.result}
; } };