0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Hide announcement bar script if visibility wasn't chosen

no issue
This commit is contained in:
Elena Baidakova 2023-06-15 15:02:39 +04:00
parent a22317305e
commit 26abeb0ad2

View file

@ -89,8 +89,9 @@ function getSearchHelper(frontendKey) {
function getAnnouncementBarHelper(data) {
const preview = data?.site?._preview;
const isFilled = settingsCache.get('announcement_content') && settingsCache.get('announcement_visibility').length;
if (!settingsCache.get('announcement_content') && !preview) {
if (!isFilled && !preview) {
return '';
}