Fix download notification message can be string instead of array

This commit is contained in:
MerlinScheurer
2025-01-01 13:37:08 +01:00
parent 25739a1162
commit e8ae261a10

View File

@@ -66,14 +66,14 @@ const Notifications = ({
>
<h3>{notification.title}</h3>
<p>
{notification.messages.map(message => {
{notification.messages.map?.(message => {
return (
<Fragment key={message}>
{message}
<br />
</Fragment>
);
})}
}) || notification.messages}
</p>
<div className="task-control-icons">
{notification['api_stop'] && notification.command !== 'STOP' && (