refactor: handle missing data

This commit is contained in:
Carlos Valente
2024-12-15 10:53:22 +01:00
committed by Carlos Valente
parent acc6ba63ba
commit 3701ba5174
@@ -87,6 +87,10 @@ function _CuesheetOverview({ children }: { children: React.ReactNode }) {
function TitlesOverview() {
const { data } = useProjectData();
if (!data.title && !data.description) {
return null;
}
return (
<div>
<div className={style.title}>{data.title}</div>