Skip to content

Commit 751e000

Browse files
committed
BSR error handling
1 parent 68fef5e commit 751e000

File tree

6 files changed

+1
-11
lines changed

6 files changed

+1
-11
lines changed

client/src/connection/ChangeRequests.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@ export const ChangeRequests = ({
141141
case actions.changed:
142142
case actions.array_changed:
143143
return formatLogicalValue(attribute, change, isOld ? change.oldValue : change.newValue);
144-
default:
145-
throw new Error(`Unknown action ${change.type}`)
146144
}
147145
}
148146

client/src/organization/UserManagement.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ export const UserManagement = () => {
8787
currentUserAuthority={currentUserAuthority}
8888
setRefresh={setRefresh}/>;
8989
}
90-
default:
91-
throw new Error(`Unknown tab; ${currentTab}`)
9290
}
9391
}
9492

client/src/pages/ApplicationDetail.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,6 @@ const ApplicationDetail = ({anonymous, refreshUser}) => {
337337
case "information": {
338338
return renderInformation();
339339
}
340-
default:
341-
throw new Error(`Unknown tab; ${currentTab}`)
342340
}
343341
}
344342

client/src/pages/Connection.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,6 @@ export const Connection = () => {
253253
refresh={refresh}
254254
/>
255255
}
256-
default:
257-
throw new Error(`Unknown tab; ${currentTab}`)
258256
}
259257
}
260258

client/src/pages/System.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ const System = () => {
5454
case "organizationPendingApproval": {
5555
return <Organizations pendingApproval={true} tab={currentTab}/>
5656
}
57-
default:
58-
throw new Error(`Unknown tab; ${currentTab}`)
5957
}
6058
}
6159

client/src/utils/MenuItems.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const mainMenuItems = {
2727

2828
const doMenuItemsForUser = (user, currentOrganization) => {
2929
//Every user has access to the home, catalogue and help menu items
30-
const newMenuItems = [mainMenuItems.home, mainMenuItems.catalogue, mainMenuItems.serviceDesk, mainMenuItems.feedback];
30+
const newMenuItems = [mainMenuItems.home, mainMenuItems.catalogue, mainMenuItems.serviceDesk];
3131
const noOrganizationMemberships = isEmpty(user.organizationMemberships);
3232
if (noOrganizationMemberships) {
3333
return newMenuItems;

0 commit comments

Comments
 (0)