Spaces:
Running
Running
keep only private spaces
Browse files- utils/index.ts +1 -2
utils/index.ts
CHANGED
@@ -11,8 +11,7 @@ export const fetchAllPages = async () => {
|
|
11 |
return json?.spaces ?? [];
|
12 |
});
|
13 |
const jsonResponses = await Promise.all(urls);
|
14 |
-
const spaces = jsonResponses.flat()?.filter((space) => space?.runtime?.hardware?.current === filter_key);
|
15 |
-
|
16 |
|
17 |
return sortByCreatedAt(spaces);
|
18 |
};
|
|
|
11 |
return json?.spaces ?? [];
|
12 |
});
|
13 |
const jsonResponses = await Promise.all(urls);
|
14 |
+
const spaces = jsonResponses.flat()?.filter((space) => space?.runtime?.hardware?.current === filter_key && !space?.private);
|
|
|
15 |
|
16 |
return sortByCreatedAt(spaces);
|
17 |
};
|