mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-24 22:09:08 +08:00
fix(core): show SentRequestPage when invitation status is NeedMoreSeat (#11207)
This commit is contained in:
@@ -10,7 +10,7 @@ export const JoinFailedPage = ({
|
||||
inviteInfo,
|
||||
error,
|
||||
}: {
|
||||
inviteInfo: GetInviteInfoQuery['getInviteInfo'];
|
||||
inviteInfo?: GetInviteInfoQuery['getInviteInfo'];
|
||||
error?: any;
|
||||
}) => {
|
||||
const userFriendlyError = UserFriendlyError.fromAny(error);
|
||||
@@ -27,8 +27,8 @@ export const JoinFailedPage = ({
|
||||
1: (
|
||||
<div className={styles.avatarWrapper}>
|
||||
<Avatar
|
||||
url={`data:image/png;base64,${inviteInfo.workspace.avatar}`}
|
||||
name={inviteInfo.workspace.name}
|
||||
url={`data:image/png;base64,${inviteInfo?.workspace.avatar}`}
|
||||
name={inviteInfo?.workspace.name}
|
||||
size={20}
|
||||
colorfulFallback
|
||||
/>
|
||||
@@ -37,7 +37,7 @@ export const JoinFailedPage = ({
|
||||
2: <span className={styles.inviteName} />,
|
||||
}}
|
||||
values={{
|
||||
workspaceName: inviteInfo.workspace.name,
|
||||
workspaceName: inviteInfo?.workspace.name,
|
||||
}}
|
||||
/>
|
||||
<div>{t['com.affine.fail-to-join-workspace.description-2']()}</div>
|
||||
|
||||
Reference in New Issue
Block a user