Skip to content

Commit

Permalink
yarn fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
judeallred committed Nov 21, 2023
1 parent a38c762 commit 41e55ac
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 30 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, {
Component,
createContext,
ErrorInfo,
FC,
useContext,
useMemo,
Expand Down Expand Up @@ -130,10 +129,6 @@ export class ErrorBoundary extends Component<
hashEventId: null,
};

componentDidCatch(error: Error, errorInfo: ErrorInfo) {
const { hashEventId } = this.state;
}

render() {
const {
didError,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {
AnyAction,
createAction,
createSlice,
current,
Draft,
EntityId,
freeze,
Expand Down Expand Up @@ -491,8 +490,6 @@ const { reducer, actions } = createSlice({
? null
: action.payload.simId;

const currentState = current(state);

state.currentSimulation = simId;
state.analysisMode = simId ? AnalysisMode.SingleRun : null;
state.history.selectedCommitGroup = null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { BasicUser } from "../types";
import { IS_DEV, IS_LOCAL } from "../paths";
import { query } from "../query";

export const BasicUserFragment = /* GraphQL */ `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ import { setLocalStorageProject } from "../../../features/middleware/localStorag
// `;

export const bootstrapQuery = async () => {
let me: User | undefined;

try {
// const result = await query<BootstrapQuery>(queryString);
// Migration shim
Expand All @@ -62,7 +60,6 @@ export const bootstrapQuery = async () => {
email: string;
role: Pick<User, "role">;
};
me = user;

return {
...bootstrap,
Expand Down
18 changes: 1 addition & 17 deletions apps/sim-core/packages/core/src/util/api/query.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import prettyStringify from "json-stringify-pretty-compact";

import { API_URL } from "./paths";

const parseQueryForName = (graphql: string) =>
Expand Down Expand Up @@ -92,21 +90,7 @@ export async function query<T, V = {} | undefined>(
variables?: V,
signal?: AbortSignal
): Promise<T> {
const { data, errors, queryName } = await baseQuery<T, V>(
graphql,
variables,
signal
);

const crumb = {
type: "query",
data: {
graphql,
variables: variables ? prettyStringify(variables) : "{}",
...(errors ? { errors: prettyStringify(errors) } : {}),
},
category: "graphql",
};
const { data, errors } = await baseQuery<T, V>(graphql, variables, signal);

if (errors) {
throw new QueryError({
Expand Down
2 changes: 1 addition & 1 deletion apps/sim-core/packages/core/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default defineConfig(({ mode }) => {
},
reportCompressedSize: false,
minify: true,
sourcemap: false
sourcemap: false,
},
define: {
BUILD_STAMP: JSON.stringify(BUILD_STAMP),
Expand Down

0 comments on commit 41e55ac

Please sign in to comment.