Commit bfd231ac authored by crazywoola's avatar crazywoola

fix: loading in explore

parent 4fb0f4e0
...@@ -32,7 +32,6 @@ const Apps: FC = () => { ...@@ -32,7 +32,6 @@ const Apps: FC = () => {
}) })
const { const {
data: { categories, allList }, data: { categories, allList },
isLoading,
} = useSWR( } = useSWR(
['/explore/apps'], ['/explore/apps'],
() => () =>
...@@ -90,7 +89,7 @@ const Apps: FC = () => { ...@@ -90,7 +89,7 @@ const Apps: FC = () => {
} }
} }
if (!isLoading) { if (!categories) {
return ( return (
<div className="flex h-full items-center"> <div className="flex h-full items-center">
<Loading type="area" /> <Loading type="area" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment