Spaces:
Sleeping
Sleeping
fix: replace missing `fetchSpaceRandomly` with `fetchFilteredSpaces` in `getSpace` function
b75f205
"use server" | |
import { fetchFilteredSpaces } from "@/utils/network"; | |
export const getSpace = async () => { | |
const spaces = await fetchFilteredSpaces('gpu', ''); | |
return spaces.length > 0 ? spaces[0] : null; | |
} | |