Skip to content

Commit eed2af1

Browse files
committed
gix crash
1 parent 52a7192 commit eed2af1

File tree

1 file changed

+3
-1
lines changed
  • packages/app/src/app/pages/Sandbox/Editor/Header/ForkButton

1 file changed

+3
-1
lines changed

packages/app/src/app/pages/Sandbox/Editor/Header/ForkButton/ForkButton.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ export const ForkButton: React.FC<ForkButtonProps> = props => {
178178
forkClicked={props.forkClicked}
179179
item={currentSpace}
180180
disabled={state.activeWorkspaceAuthorization === 'READ'}
181-
isPersonal={currentSpace.teamId === state.personalWorkspaceId}
181+
isPersonal={
182+
currentSpace && currentSpace.teamId === state.personalWorkspaceId
183+
}
182184
/>
183185
<Menu.Divider />
184186
{otherWorkspaces.map((space, i) => (

0 commit comments

Comments
 (0)