|
|
@@ -124,10 +124,9 @@ class UserTriggerNotification extends React.Component {
|
|
|
<button type="button" className="btn btn-primary" disabled={!this.validateForm()} onClick={this.onClickSubmit}>{t('add')}</button>
|
|
|
</td>
|
|
|
</tr>
|
|
|
- {userNotifications.map((notification) => {
|
|
|
+ {userNotifications.length > 0 && userNotifications.map((notification) => {
|
|
|
return <UserNotificationRow notification={notification} onClickDeleteBtn={this.onClickDeleteBtn} key={notification._id} />;
|
|
|
- })
|
|
|
- }
|
|
|
+ })}
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</React.Fragment>
|