ryoji-s 2 лет назад
Родитель
Сommit
30f08004de
1 измененных файлов с 10 добавлено и 1 удалено
  1. 10 1
      apps/app/src/components/Admin/AuditLog/ActivityTable.tsx

+ 10 - 1
apps/app/src/components/Admin/AuditLog/ActivityTable.tsx

@@ -48,7 +48,16 @@ export const ActivityTable : FC<Props> = (props: Props) => {
                   { activity.user != null && (
                     <>
                       <UserPicture user={activity.user} />
-                      <a className="ml-2" href={pagePathUtils.userHomepagePath(activity.user.username)}>{activity.snapshot?.username}</a>
+                      <a
+                        className="ml-2"
+                        href={pagePathUtils.userHomepagePath(
+                          typeof activity.user === 'string'
+                            ? ''
+                            : activity.user.username,
+                        )}
+                      >
+                        {activity.snapshot?.username}
+                      </a>
                     </>
                   )}
                 </td>