check against none

Co-authored-by: Masen Furer <m_github@0x26.net>
This commit is contained in:
Khaleel Al-Adhami 2024-10-02 12:07:31 -07:00 committed by GitHub
parent 0b916fe370
commit 68b4527233
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -546,8 +546,8 @@ class App(MiddlewareMixin, LifespanMixin, Base):
self.unevaluated_pages[route] = UnevaluatedPage(
component=component,
route=route,
title=title or constants.DefaultPage.TITLE,
description=description or constants.DefaultPage.DESCRIPTION,
title=title if title is not None else constants.DefaultPage.TITLE,
description=description if description is not None else constants.DefaultPage.DESCRIPTION,
image=image,
on_load=on_load,
meta=meta,