fix: report port wrong (#633)

This commit is contained in:
Eli Bosley
2023-05-01 14:09:12 -04:00
committed by GitHub
parent f9d656fc0d
commit 2011cf453d

View File

@@ -23,6 +23,7 @@ import {
} from '@apollo/client/core/core.cjs';
import { MinigraphStatus } from '@app/graphql/generated/api/types';
import { API_VERSION } from '@app/environment';
import { loadStateFiles } from '@app/store/modules/emhttp';
type CloudQueryResult = NonNullable<
ApolloQueryResult<getCloudQuery>['data']['cloud']
@@ -343,6 +344,7 @@ export const report = async (...argv: string[]) => {
// Load my servers config file into store
await store.dispatch(loadConfigFile());
await store.dispatch(loadStateFiles());
const { config } = store.getState();
if (!config.upc.apikey) throw new Error('Missing UPC API key');