Skip to content

Commit a0cd633

Browse files
committed
removes the selection UI on sql code block displays
(In the case of a named block, we could imagine reenabling it if it could drive changes to the values passed to id.)
1 parent 6d3efac commit a0cd633

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sql.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ export function transpileSql(content: string, {id, display}: Record<string, stri
99
return id === undefined
1010
? display === "false"
1111
? `${sql};`
12-
: `display(Inputs.table(await ${sql}));`
12+
: `display(Inputs.table(await ${sql}, {select: false}));`
1313
: display === "false"
1414
? `const ${id} = await ${sql};`
15-
: `const ${id} = ((_) => (display(Inputs.table(_)), _))(await ${sql});`;
15+
: `const ${id} = ((_) => (display(Inputs.table(_, {select: false})), _))(await ${sql});`;
1616
}
1717

1818
function isValidBinding(input: string): boolean {

0 commit comments

Comments
 (0)