fixes numbering system for dynamic bindings in evaluated popup text (#11005)
This commit is contained in:
parent
980c8cbf57
commit
c06c8b817e
|
|
@ -237,8 +237,9 @@ export function PreparedStatementViewer(props: {
|
||||||
});
|
});
|
||||||
return <div />;
|
return <div />;
|
||||||
}
|
}
|
||||||
const stringSegments = value.split(/\$\d/);
|
const stringSegments = value.split(/\$\d+/);
|
||||||
const $params = [...value.matchAll(/\$\d/g)].map((matches) => matches[0]);
|
const $params = [...value.matchAll(/\$\d+/g)].map((matches) => matches[0]);
|
||||||
|
|
||||||
const paramsWithTooltips = $params.map((param) => (
|
const paramsWithTooltips = $params.map((param) => (
|
||||||
<Tooltip content={<span>{parameters[param]}</span>} key={param}>
|
<Tooltip content={<span>{parameters[param]}</span>} key={param}>
|
||||||
<PreparedStatementParameter key={param}>
|
<PreparedStatementParameter key={param}>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user