space-browser / app /actions.ts
DeathDaDev's picture
fix: replace missing `fetchSpaceRandomly` with `fetchFilteredSpaces` in `getSpace` function
b75f205
raw
history blame
212 Bytes
"use server"
import { fetchFilteredSpaces } from "@/utils/network";
export const getSpace = async () => {
const spaces = await fetchFilteredSpaces('gpu', '');
return spaces.length > 0 ? spaces[0] : null;
}