Skip to content

Commit

Permalink
Use a default export
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Dec 13, 2021
1 parent 2e00634 commit 8230866
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async function getHomepageParams() {
};
}

export async function redirectToHomepage() {
export default async function redirectToHomepage() {
const searchParams = new URLSearchParams( history.location.search );
const params = Object.fromEntries( searchParams.entries() );

Expand Down
2 changes: 1 addition & 1 deletion packages/edit-site/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import './hooks';
import { store as editSiteStore } from './store';
import EditSiteApp from './components/app';
import getIsListPage from './utils/get-is-list-page';
import { redirectToHomepage } from './components/routes/redirect-to-homepage';
import redirectToHomepage from './components/routes/redirect-to-homepage';

/**
* Reinitializes the editor after the user chooses to reboot the editor after
Expand Down

0 comments on commit 8230866

Please sign in to comment.