Skip to content

Commit 7cf8598

Browse files
committed
guard for truthy names only
1 parent 7936d7f commit 7cf8598

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

src/pages/status/migration/index.jsx

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -100,25 +100,27 @@ export default function MigrationDetails() {
100100
class={["tabs__item", (view == "table" ? "tabs__item--active" : null)].join(" ")}
101101
onClick={() => toggle("table")}
102102
>
103-
Table
104-
</li>
103+
Table
104+
</li>
105105
<li
106106
key="graph"
107107
role="tab"
108108
class={["tabs__item", (view == "graph" ? "tabs__item--active" : null)].join(" ")}
109109
onClick={() => toggle("graph")}
110110
>
111-
Graph
112-
</li>
113-
<li
114-
key="raw"
115-
role="tab"
116-
class="tabs__item"
117-
>
111+
Graph
112+
</li>
113+
{name &&
118114
<a href={urls.migrations.details.replace("<NAME>", name)} target="_blank">
119-
<span>Raw <i className="fa fa-fw fa-arrow-up-right-from-square"></i></span>
115+
<li
116+
key="raw"
117+
role="tab"
118+
class="tabs__item"
119+
>
120+
<span>Raw <i className="fa fa-fw fa-arrow-up-right-from-square"></i></span>
121+
</li>
120122
</a>
121-
</li>
123+
}
122124
</ul>
123125
</div>
124126
</div>

0 commit comments

Comments
 (0)