diff --git a/src/components/CustomizeStore.js b/src/components/CustomizeStore.js index ebade6ee..9f6d816a 100644 --- a/src/components/CustomizeStore.js +++ b/src/components/CustomizeStore.js @@ -24,12 +24,28 @@ const CustomizeList = [ ]; export function CustomizeStore({ plugins }) { - let { data: status } = useSWR(Endpoints.PAGE_STATUS); + let { data: status, error } = useSWR(Endpoints.PAGE_STATUS); let { pages, theme } = status ?? {}; let pagesByName = Object.fromEntries( pages?.map((_) => [_["meta_value"], _["ID"]]) ?? [] ); - // TODO: Add Loading state + + if (status === undefined) { + return ( +