remove it instead

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-12-06 12:07:23 +01:00
parent 4640d6e286
commit 151c0e1477
5 changed files with 13 additions and 24 deletions
-2
View File
@@ -32,7 +32,6 @@
"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "4.0.0-alpha.57",
"object-hash": "^3.0.0",
"react-use": "^17.2.4"
},
"peerDependencies": {
@@ -48,7 +47,6 @@
"@testing-library/react": "^12.1.3",
"@testing-library/user-event": "^14.0.0",
"@types/node": "^16.11.26",
"@types/object-hash": "^3.0.0",
"cross-fetch": "^3.1.5",
"msw": "^0.49.0"
},
@@ -13,9 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Entity } from '@backstage/catalog-model';
import React from 'react';
import { Grid, Typography } from '@material-ui/core';
import {
EmptyState,
ErrorPanel,
@@ -23,12 +22,13 @@ import {
MissingAnnotationEmptyState,
Progress,
} from '@backstage/core-components';
import hash from 'object-hash';
import { makeStyles } from '@material-ui/core/styles';
import { BackstageTheme } from '@backstage/theme';
import { useApi } from '@backstage/core-plugin-api';
import { airbrakeApiRef } from '../../api';
import { BackstageTheme } from '@backstage/theme';
import { Grid, Typography } from '@material-ui/core';
import { makeStyles } from '@material-ui/core/styles';
import React from 'react';
import useAsync from 'react-use/lib/useAsync';
import { airbrakeApiRef } from '../../api';
import { AIRBRAKE_PROJECT_ID_ANNOTATION, useProjectId } from '../useProjectId';
const useStyles = makeStyles<BackstageTheme>(() => ({
@@ -64,8 +64,8 @@ export const EntityAirbrakeWidget = ({ entity }: { entity: Entity }) => {
<Grid container spacing={3} direction="column">
{value.groups?.map(group => (
<Grid item key={group.id}>
{group.errors?.map(groupError => (
<InfoCard title={groupError.type} key={hash(groupError)}>
{group.errors?.map((groupError, i) => (
<InfoCard title={groupError.type} key={i}>
<Typography variant="body1" className={classes.multilineText}>
{groupError.message}
</Typography>