diff --git a/.gitignore b/.gitignore index 79b91f594..41ec55927 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ build/ .env.development.local .env.test.local .env.production.local +.env npm-debug.log* yarn-debug.log* diff --git a/src/components/App/SideBar/Latest/index.tsx b/src/components/App/SideBar/Latest/index.tsx index 53c23b33e..c900962fe 100644 --- a/src/components/App/SideBar/Latest/index.tsx +++ b/src/components/App/SideBar/Latest/index.tsx @@ -16,7 +16,7 @@ const _View = ({ isSearchResult }: Props) => { const [nodeCount, setNodeCount] = useUserStore((s) => [s.nodeCount, s.setNodeCount]) const [fetchData] = [useDataStore((s) => s.fetchData)] - async function getLatest() { + const getLatest = async () => { if (nodeCount < 1) { return }