run prettier formatting
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -34,7 +34,11 @@ import { useApi } from '@backstage/core-plugin-api';
|
||||
|
||||
const Body = () => {
|
||||
const catalogApi = useApi(catalogApiRef);
|
||||
const { value: entities, loading, error } = useAsync(async () => {
|
||||
const {
|
||||
value: entities,
|
||||
loading,
|
||||
error,
|
||||
} = useAsync(async () => {
|
||||
const response = await catalogApi.getEntities({
|
||||
filter: { kind: 'domain' },
|
||||
});
|
||||
|
||||
@@ -119,7 +119,11 @@ export function GroupsDiagram() {
|
||||
const catalogApi = useApi(catalogApiRef);
|
||||
const organizationName =
|
||||
configApi.getOptionalString('organization.name') ?? 'Backstage';
|
||||
const { loading, error, value: catalogResponse } = useAsync(() => {
|
||||
const {
|
||||
loading,
|
||||
error,
|
||||
value: catalogResponse,
|
||||
} = useAsync(() => {
|
||||
return catalogApi.getEntities({
|
||||
filter: {
|
||||
kind: ['Group'],
|
||||
|
||||
@@ -33,7 +33,11 @@ import { useApi } from '@backstage/core-plugin-api';
|
||||
|
||||
const Body = () => {
|
||||
const exploreToolsConfigApi = useApi(exploreToolsConfigRef);
|
||||
const { value: tools, loading, error } = useAsync(async () => {
|
||||
const {
|
||||
value: tools,
|
||||
loading,
|
||||
error,
|
||||
} = useAsync(async () => {
|
||||
return await exploreToolsConfigApi.getTools();
|
||||
}, [exploreToolsConfigApi]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user