fix mapping screen crash when office/resource is unknown
This commit is contained in:
@@ -76,6 +76,7 @@ class SingleMapping extends Component {
|
||||
};
|
||||
|
||||
render() {
|
||||
try {
|
||||
const {singleMapping: {officeSlug, resourceSlug}} = this.props;
|
||||
const {officeId, resourceId, officeOptions, allResourceOptions, pendingMappings} = this.props;
|
||||
const {showDeletePrompt, newOfficeId, newResourceId} = this.state;
|
||||
@@ -137,6 +138,9 @@ class SingleMapping extends Component {
|
||||
</Table.Cell>
|
||||
</Table.Row>
|
||||
);
|
||||
}catch (e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user