Skip to content

Commit

Permalink
chore: remove extra focusGrid call (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfig committed Jun 19, 2023
1 parent 694214d commit cd09b64
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/hooks/useGenerateLocalFiles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { editorInteractionStateAtom } from '../atoms/editorInteractionStateAtom'
import { DEFAULT_FILE_NAME, EXAMPLE_FILES, FILE_PARAM_KEY } from '../constants/app';
import apiClientSingleton from '../api-client/apiClientSingleton';
import mixpanel from 'mixpanel-browser';
import { focusGrid } from '../helpers/focusGrid';
const INDEX = 'file-list';

export interface LocalFile {
Expand Down Expand Up @@ -85,7 +84,6 @@ export const useGenerateLocalFiles = (sheetController: SheetController): LocalFi
sheetController.sheet.load_file(grid);
sheetController.app?.rebuild();
sheetController.app?.reset();
focusGrid();
const searchParams = new URLSearchParams(window.location.search);
// If `file` is in there from an intial page load, remove it
if (searchParams.get('file')) {
Expand Down

1 comment on commit cd09b64

@vercel
Copy link

@vercel vercel bot commented on cd09b64 Jun 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

quadratic – ./

quadratic-git-main-quadratic.vercel.app
quadratic-quadratic.vercel.app
quadratic-nu.vercel.app

Please sign in to comment.