From 16bbd6513eb39d75f4cc643a43d78d1aa4832782 Mon Sep 17 00:00:00 2001 From: Nicholas Pun <182540099+nicholaspun-wandb@users.noreply.github.com> Date: Fri, 10 Jan 2025 14:39:09 -0800 Subject: [PATCH] chore(weave): remove runColors as a suggestion from query panels --- weave-js/src/core/suggest.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/weave-js/src/core/suggest.ts b/weave-js/src/core/suggest.ts index c5e3ae9f3427..180399d2ffe3 100644 --- a/weave-js/src/core/suggest.ts +++ b/weave-js/src/core/suggest.ts @@ -527,7 +527,9 @@ async function autosuggestNodes( if (node.nodeType === 'void') { const frame = toFrame(stack); - const variableNames = Object.keys(frame); + const variableNames = Object.keys(frame).filter( + key => !key.includes('runColors') // runColors is used to color the row index in the table, but we don't want to suggest it (see WB-21774) + ); if (variableNames.length > 0) { for (const varName of variableNames) { // Recursively suggest results for each variable