We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31c0831 commit 1307388Copy full SHA for 1307388
1 file changed
ggsql-wasm/demo/src/quarto/main.ts
@@ -100,9 +100,12 @@ function gatherCells(): CellInfo[] {
100
const visCandidates = outputDiv.querySelectorAll<HTMLElement>(
101
'div[id^="vis-"]'
102
);
103
- if (visCandidates.length > 0) {
104
- visContainer = visCandidates[0];
105
- visId = visContainer.id;
+ const match = Array.from(visCandidates).find((el) =>
+ /^vis-\d+$/.test(el.id)
+ );
106
+ if (match) {
107
+ visContainer = match;
108
+ visId = match.id;
109
}
110
111
0 commit comments