From 82308660131a6cf35fa10a4985ca9957affd192c Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Mon, 13 Dec 2021 16:45:17 +0800 Subject: [PATCH] Use a default export --- .../edit-site/src/components/routes/redirect-to-homepage.js | 2 +- packages/edit-site/src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/edit-site/src/components/routes/redirect-to-homepage.js b/packages/edit-site/src/components/routes/redirect-to-homepage.js index 29fd0d1bcb0549..c1ff1f7112be76 100644 --- a/packages/edit-site/src/components/routes/redirect-to-homepage.js +++ b/packages/edit-site/src/components/routes/redirect-to-homepage.js @@ -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() ); diff --git a/packages/edit-site/src/index.js b/packages/edit-site/src/index.js index dc46f6beb03cd5..9f29d105f48bca 100644 --- a/packages/edit-site/src/index.js +++ b/packages/edit-site/src/index.js @@ -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