mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fix duplicate SVG rendering (#13828)
This commit is contained in:
@@ -325,9 +325,11 @@ export function renderSVG(options: renderSVG.IRenderOptions): Promise<void> {
|
|||||||
// Unpack the options.
|
// Unpack the options.
|
||||||
let { host, source, trusted, unconfined } = options;
|
let { host, source, trusted, unconfined } = options;
|
||||||
|
|
||||||
|
// Clear the content in the host.
|
||||||
|
host.textContent = '';
|
||||||
|
|
||||||
// Clear the content if there is no source.
|
// Clear the content if there is no source.
|
||||||
if (!source) {
|
if (!source) {
|
||||||
host.textContent = '';
|
|
||||||
return Promise.resolve(undefined);
|
return Promise.resolve(undefined);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user