Merge pull request #14780 from backstage/freben/globals

avoid globals
This commit is contained in:
Fredrik Adelöw
2022-11-22 20:18:27 +01:00
committed by GitHub
19 changed files with 212 additions and 21 deletions
@@ -61,7 +61,9 @@ const DetailsPage = () => {
const classes = useStyles();
const [{ status, result: details, error }, { execute }] = useAsync(async () =>
api.getProject(decodeURIComponent(location.search.split('projectId=')[1])),
api.getProject(
decodeURIComponent(window.location.search.split('projectId=')[1]),
),
);
useMountEffect(execute);