Fix alerts title

This commit is contained in:
Bill 2022-03-15 01:13:39 -04:00
parent eadd1290f4
commit 78d13a7571
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ interface NotificationDefaultAlertViewProps extends LayoutNotificationAlertViewP
export const NotificationDefaultAlertView: FC<NotificationDefaultAlertViewProps> = props =>
{
const { item = null, title = (props.title || ''), close = null, ...rest } = props;
const { item = null, title = ((props.item && props.item.title) || ''), close = null, ...rest } = props;
const visitUrl = useCallback(() =>
{

View File

@ -9,7 +9,7 @@ export interface NotificationEventAlertViewProps extends LayoutNotificationAlert
export const NotificationEventAlertView: FC<NotificationEventAlertViewProps> = props =>
{
const { item = null, title = (props.title || ''), close = null, ...rest } = props;
const { item = null, title = ((props.item && props.item.title) || ''), close = null, ...rest } = props;
const visitUrl = useCallback(() =>
{