Skip to content

Commit 0cf546f

Browse files
committed
fix(playground): Can't delete dashboard item name in dashboard app
1 parent 7068b60 commit 0cf546f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cubejs-playground/src/scaffolding/react/pages/ExplorePage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ const ExplorePage = withRouter(({ cubejsApi, history, location }) => {
4646
{};
4747
const [titleModalVisible, setTitleModalVisible] = useState(false);
4848
const [title, setTitle] = useState(null);
49-
const finalTitle =
50-
title || (itemId && !loading && data && data.dashboardItem.name) || "New Chart";
49+
const finalTitle = title != null ? title
50+
: (itemId && !loading && data && data.dashboardItem.name) || "New Chart";
5151

5252
if (loading) {
5353
return <Spin />;

0 commit comments

Comments
 (0)