Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
fix: display unavailable after config deletion (#760)
Browse files Browse the repository at this point in the history
  • Loading branch information
maghirardelli authored Oct 18, 2021
1 parent 0119e7d commit 9c1daa4
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ class ScEnvironmentCard extends React.Component {
const envType = this.envType || {};

const config = this.getConfiguration(this.environment.envTypeConfigId);
const configName = config.name;
const instanceType = config.instanceType;

const renderRow = (key, value) => (
<Table.Row>
Expand All @@ -136,8 +134,8 @@ class ScEnvironmentCard extends React.Component {
{renderRow('Studies', studyCount === 0 ? 'No studies linked to this workspace' : niceNumber(studyCount))}
{renderRow('Project', _.isEmpty(env.projectId) ? 'N/A' : env.projectId)}
{renderRow('Workspace Type', envType.name)}
{renderRow('Configuration Name', configName)}
{renderRow('Instance Type', instanceType)}
{renderRow('Configuration Name', config !== undefined ? config.name : 'Unavailable')}
{renderRow('Instance Type', config !== undefined ? config.instanceType : 'Unavailable')}
</Table.Body>
</Table>
);
Expand Down

0 comments on commit 9c1daa4

Please sign in to comment.