We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3ffaea commit eb1999aCopy full SHA for eb1999a
src/main/frontend/pipeline-graph-view/pipeline-graph/main/support/StatusIcons.tsx
@@ -92,13 +92,14 @@ export function getSymbolForResult(
92
// Map the result to retrieve the appropriate symbol from core
93
const symbols = document.querySelector<HTMLTemplateElement>(
94
"#pgv-build-status-icons",
95
- )!;
+ );
96
const mappedResult = mapResultToCore(result);
97
98
return (
99
<div
100
dangerouslySetInnerHTML={{
101
- __html: symbols.content.querySelector("#" + mappedResult)!.outerHTML,
+ // This fails in React tests without the Jelly context
102
+ __html: symbols?.content?.querySelector("#" + mappedResult)?.outerHTML || `<div></div>`,
103
}}
104
/>
105
);
0 commit comments