Skip to content

Commit

Permalink
Fix: Add label for empty string in column header (#4067)
Browse files Browse the repository at this point in the history
* Add label for empty string in column header

* Handle empty string for row values

* Use NSBP character
  • Loading branch information
djbarnwal authored Feb 16, 2024
1 parent 700f488 commit 6a13701
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@
</div>
</button>
{/if}
{value === "LOADING_CELL" ? "" : value}

{#if value === "LOADING_CELL"}
{""}
{:else if value === ""}
{"\u00A0"}
{:else}
{value}
{/if}
</div>

<style lang="postcss">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ function createColumnDefinitionForDimensions(
[dimensionNames[level]]: value,
});

if (displayValue === "") {
displayValue = "\u00A0";
}

return {
header: displayValue,
columns: nestedColumns,
Expand Down

1 comment on commit 6a13701

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.