Fix broken tests batch 2 (#6573)

As title
This commit is contained in:
Thomas Trompette
2024-08-08 11:16:59 +02:00
committed by GitHub
parent 1b9f63b3ad
commit 74229a80c8
10 changed files with 57 additions and 57 deletions

View File

@ -18,7 +18,10 @@ export const getFirstNonEmptyLineOfRichText = (
return content.link;
}
if ('text' in content) {
return content.text.trim();
const value = content.text.trim();
if (value !== '') {
return value;
}
}
}
}