Skip to content

Commit

Permalink
always show title if available
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Jun 23, 2020
1 parent 1ece895 commit 34cff58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('workspace_panel_wrapper', () => {
/>
);

expect(renderToolbarMock).toHaveBeenCalledWith(expect.anything(), {
expect(renderToolbarMock).toHaveBeenCalledWith(expect.any(Element), {
state: visState,
frame: mockFrameAPI,
setState: expect.anything(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function WorkspacePanelWrapper({
)}
<EuiFlexItem>
<EuiPageContent className="lnsWorkspacePanelWrapper">
{!emptyExpression && (
{(!emptyExpression || title) && (
<EuiPageContentHeader
className={classNames('lnsWorkspacePanelWrapper__pageContentHeader', {
'lnsWorkspacePanelWrapper__pageContentHeader--unsaved': !title,
Expand Down

0 comments on commit 34cff58

Please sign in to comment.