mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 15:09:10 +00:00
refactor: handle missing data
This commit is contained in:
committed by
Carlos Valente
parent
acc6ba63ba
commit
3701ba5174
@@ -87,6 +87,10 @@ function _CuesheetOverview({ children }: { children: React.ReactNode }) {
|
|||||||
function TitlesOverview() {
|
function TitlesOverview() {
|
||||||
const { data } = useProjectData();
|
const { data } = useProjectData();
|
||||||
|
|
||||||
|
if (!data.title && !data.description) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div className={style.title}>{data.title}</div>
|
<div className={style.title}>{data.title}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user