Skip to content

Commit

Permalink
Merge pull request finos#7173 from deutschebank/db-contrib/waltz-7167…
Browse files Browse the repository at this point in the history
…-diag-fix

Diag fix
  • Loading branch information
davidwatkins73 authored Oct 18, 2024
2 parents db98073 + c22116a commit 89e1759
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion waltz-ng/client/common/hierarchy-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export function groupHierarchyByKey(tree = [], keyFn = n => n.id, acc = {}) {


export function flattenChildren(node, acc = []) {
_.forEach(node.children || [], child => {
_.forEach(node?.children || [], child => {
acc.push(child);
flattenChildren(child, acc);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
}
$: children = $hideEmptyCells && $selectedOverlay
? _.filter(group.children, child => hasData(child, $overlayData))
: group.children;
? _.filter(group?.children, child => hasData(child, $overlayData))
: group?.children || [];
$: overlayRequiresTitle = group.data && $selectedOverlay?.showTitle;
$: overlayRequiresTitle = group?.data && $selectedOverlay?.showTitle;
$: cellData = _.get($overlayData, group.id);
$: cellData = _.get($overlayData, group?.id);
$: childKinds = _
.chain(flattenChildren(group))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
<div>
<svg viewBox={`0 0 ${width} ${height}`}
bind:this={svgElem}
width="100%"
class:focused={renderMode === RenderModes.FOCUSED}
style="background: white">
<g class="app-summary">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<div>
{#if renderMode !== RenderModes.FOCUSED}
<svg viewBox={`0 0 ${width} ${height}`}
width="100%"
style="background: white">
<g>
{#each counts as r}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<div>
<svg viewBox={`0 0 ${width} ${height}`}
shape-rendering="crispEdges"
width="100%"
style="background: white">
<g transform={`translate(${cellPadding} , ${cellPadding})`}>
{#each rows as row, idx}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<div>
<svg class="content"
viewBox="0 0 {width} {height}"
width="100%"
style={`background: ${cellData?.totalCost ? colorScale(cellData?.totalCost) : "#fff"}`}>
<g>
<text x={width / 2}
Expand Down

0 comments on commit 89e1759

Please sign in to comment.